From 04a31c912c40083cd132ae61512463867ee67325 Mon Sep 17 00:00:00 2001 From: johnd0e <1838643+johnd0e@users.noreply.github.com> Date: Tue, 27 Feb 2024 18:53:01 +0100 Subject: [PATCH] Add github CI workflow --- .github/workflows/cf-deploy.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 .github/workflows/cf-deploy.yml diff --git a/.github/workflows/cf-deploy.yml b/.github/workflows/cf-deploy.yml new file mode 100644 index 0000000..9f5fdc2 --- /dev/null +++ b/.github/workflows/cf-deploy.yml @@ -0,0 +1,16 @@ +name: Deploy Worker +on: + push: + pull_request: + repository_dispatch: +jobs: + deploy: + runs-on: ubuntu-latest + name: Deploy + steps: + - uses: actions/checkout@v4 + - name: Build & Deploy Worker + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CF_API_TOKEN }} + accountId: ${{ secrets.CF_ACCOUNT_ID }}