use /tmp/deploy to stage files
All checks were successful
Deploy Pages / deploy (push) Successful in 24s
All checks were successful
Deploy Pages / deploy (push) Successful in 24s
This commit is contained in:
@ -8,11 +8,13 @@ jobs:
|
|||||||
container: alpine:latest
|
container: alpine:latest
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
steps:
|
steps:
|
||||||
- run: apk add nodejs npm
|
- run: apk add nodejs npm rsync
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
- run: mkdir /tmp/deploy
|
||||||
|
- run: rsync -uan --exclude=".*" . /tmp/deploy
|
||||||
- name: Build & Deploy Worker
|
- name: Build & Deploy Worker
|
||||||
uses: cloudflare/wrangler-action@v3
|
uses: cloudflare/wrangler-action@v3
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
accountId: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
command: pages deploy . --project-name=ctmesh-org
|
command: pages deploy /tmp/deploy --project-name=ctmesh-org
|
||||||
|
Reference in New Issue
Block a user