forked from bepass-org/bepass-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (31 loc) · 938 Bytes
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Deploy Worker
on:
push:
pull_request:
repository_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ env.GIT_REF }}
fetch-depth: 0
# npm (and node16) are installed by wrangler-action in a pre-job setup
- name: Get dependencies
run: npm i
- name: 📚 Wrangler publish
# github.com/cloudflare/wrangler-action
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CFAPI }}
# input overrides env-defaults, regardless
environment: ${{ env.WORKERS_ENV }}
env:
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
GIT_COMMIT_ID: ${{ env.GIT_REF }}
- name: Notice
run: |
echo "::notice::Deployed to ${WORKERS_ENV} / ${GIT_REF} @ ${COMMIT_SHA}"