This commit is contained in:
parent
419894bcef
commit
dba7afef4d
@ -7,15 +7,18 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: get last sha
|
|
||||||
run: echo "LAST_COMMIT=`git rev-parse --short HEAD`" >> $GITHUB_ENV
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: TartanLlama/actions-eleventy@master
|
uses: TartanLlama/actions-eleventy@master
|
||||||
|
env:
|
||||||
|
LAST_COMMIT: $GITHUB_REF_NAME
|
||||||
with:
|
with:
|
||||||
install_dependencies: true
|
install_dependencies: true
|
||||||
- name: Deploy
|
- uses: actions/setup-node@v3
|
||||||
uses: peaceiris/actions-gh-pages@v3
|
|
||||||
with:
|
with:
|
||||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
node-version: '20.x'
|
||||||
publish_dir: ./dist
|
cache: "npm"
|
||||||
cname: rizaldy.today
|
- run: npx wrangler pages deploy out --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME
|
||||||
|
env:
|
||||||
|
CLOUDFLARE_API_TOKEN: ${{ vars.CLOUDFLARE_API_TOKEN }}
|
||||||
|
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
||||||
|
CF_PROJECT_NAME: ${{ vars.CF_PROJECT_NAME }}
|
||||||
|
Loading…
Reference in New Issue
Block a user