From ead16abfd688e3927116938a15c27d6d5dce0e19 Mon Sep 17 00:00:00 2001 From: Toasty360 Date: Mon, 11 Nov 2024 09:14:36 -0600 Subject: [PATCH] added workflows --- .github/workflows/publish.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..15fa011 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,30 @@ +name: Deploy to Cloudflare Worker + +on: + push: + branches: + - main + pull_request: + branches: + - main + repository_dispatch: +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + deploy: + runs-on: ubuntu-latest + timeout-minutes: 60 + needs: build + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Wrangler CLI + uses: cloudflare/wrangler-action@1.3.0 + with: + apiToken: ${{ secrets.CF_API_TOKEN }}