From beb4dc42200deafb99080640b2ced5e39a77da16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Jani=C5=A1?= Date: Fri, 6 May 2022 13:21:58 +0100 Subject: [PATCH] test wrangler2 actions --- .github/workflows/deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ccfa3c4..cb4b0ff 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -4,6 +4,7 @@ on: push: branches: - main + - e/w2 repository_dispatch: schedule: - cron: '0 0 1 * *' @@ -22,9 +23,10 @@ jobs: env: NODE_ENV: production - name: Publish - uses: cloudflare/wrangler-action@1.3.0 + uses: WalshyDev/wrangler-action@walshy/pages-996-support-wrangler2 with: apiToken: ${{ secrets.CF_API_TOKEN }} + command: publish --env production preCommands: | wrangler kv:namespace create KV_STATUS_PAGE apt-get update && apt-get install -y jq @@ -42,7 +44,6 @@ jobs: SECRET_TELEGRAM_API_TOKEN SECRET_TELEGRAM_CHAT_ID SECRET_DISCORD_WEBHOOK_URL - environment: production env: CF_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }} SECRET_SLACK_WEBHOOK_URL: ${{secrets.SECRET_SLACK_WEBHOOK_URL}}