mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Deploy Analytics Worker from action
This commit is contained in:
parent
844074fd91
commit
83edd06996
1 changed files with 12 additions and 2 deletions
14
.github/workflows/deploy-cloudflare-workers.yml
vendored
14
.github/workflows/deploy-cloudflare-workers.yml
vendored
|
|
@ -14,15 +14,25 @@ jobs:
|
||||||
name: Deploy
|
name: Deploy
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
- name: Write Wrangler config
|
- name: Write Wrangler configs
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env
|
echo ${{ secrets.WRANGLER_ENV }} | base64 -d > doesitarm-default/.env
|
||||||
cat doesitarm-default/.env
|
cat doesitarm-default/.env
|
||||||
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml
|
echo ${{ secrets.WRANGLER_TOML }} | base64 -d > doesitarm-default/wrangler.toml
|
||||||
cat doesitarm-default/wrangler.toml
|
cat doesitarm-default/wrangler.toml
|
||||||
npm install
|
npm install
|
||||||
- name: Deploy Worker
|
|
||||||
|
# Analytics Worker
|
||||||
|
echo ${{ secrets.ANALYTICS_WRANGER_TOML }} | base64 -d > workers/analytics/wrangler.toml
|
||||||
|
cat workers/analytics/wrangler.toml
|
||||||
|
npm install
|
||||||
|
- name: Deploy Default Worker
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
workingDirectory: 'doesitarm-default'
|
workingDirectory: 'doesitarm-default'
|
||||||
|
- name: Deploy Analytics Worker
|
||||||
|
uses: cloudflare/wrangler-action@1.3.0
|
||||||
|
with:
|
||||||
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
|
workingDirectory: 'workers/analytics'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue