From bd4538f0a8f114f84b5b55564a2591b17f8aa2f2 Mon Sep 17 00:00:00 2001 From: David Stephens Date: Sat, 23 Sep 2023 16:32:39 +0100 Subject: [PATCH] Add automatic worker deployment --- .github/workflows/deploy.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..1c58463 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,17 @@ +name: Deploy Worker +on: + push: + pull_request: + repository_dispatch: +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 60 + needs: test + steps: + - uses: actions/checkout@v2 + - name: Build & Deploy Worker + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + accountId: ${{ secrets.CF_ACCOUNT_ID }}