mirror of
https://github.com/tormachris/cf-workers-status-page.git
synced 2024-11-27 16:05:41 +01:00
test wrangler2 actions
This commit is contained in:
parent
7813ff93ac
commit
beb4dc4220
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@ -4,6 +4,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- e/w2
|
||||||
repository_dispatch:
|
repository_dispatch:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 0 1 * *'
|
- cron: '0 0 1 * *'
|
||||||
@ -22,9 +23,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
NODE_ENV: production
|
NODE_ENV: production
|
||||||
- name: Publish
|
- name: Publish
|
||||||
uses: cloudflare/wrangler-action@1.3.0
|
uses: WalshyDev/wrangler-action@walshy/pages-996-support-wrangler2
|
||||||
with:
|
with:
|
||||||
apiToken: ${{ secrets.CF_API_TOKEN }}
|
apiToken: ${{ secrets.CF_API_TOKEN }}
|
||||||
|
command: publish --env production
|
||||||
preCommands: |
|
preCommands: |
|
||||||
wrangler kv:namespace create KV_STATUS_PAGE
|
wrangler kv:namespace create KV_STATUS_PAGE
|
||||||
apt-get update && apt-get install -y jq
|
apt-get update && apt-get install -y jq
|
||||||
@ -42,7 +44,6 @@ jobs:
|
|||||||
SECRET_TELEGRAM_API_TOKEN
|
SECRET_TELEGRAM_API_TOKEN
|
||||||
SECRET_TELEGRAM_CHAT_ID
|
SECRET_TELEGRAM_CHAT_ID
|
||||||
SECRET_DISCORD_WEBHOOK_URL
|
SECRET_DISCORD_WEBHOOK_URL
|
||||||
environment: production
|
|
||||||
env:
|
env:
|
||||||
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||||
SECRET_SLACK_WEBHOOK_URL: ${{secrets.SECRET_SLACK_WEBHOOK_URL}}
|
SECRET_SLACK_WEBHOOK_URL: ${{secrets.SECRET_SLACK_WEBHOOK_URL}}
|
||||||
|
Loading…
Reference in New Issue
Block a user