From 4435c72a93d696bc78ec2fb06b0eccc98fc24220 Mon Sep 17 00:00:00 2001 From: "The Artifex (4r7if3x)" Date: Mon, 10 Jun 2024 19:08:29 +0200 Subject: [PATCH] Configured automatic deployment --- .github/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 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..c82bd04 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Deploy + +on: + push: + branches: + - main + paths: + - 'src/**' + - wrangler.toml + +jobs: + deploy: + name: Deploy + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Build & Publish + uses: cloudflare/wrangler-action@v3 + with: + accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} + apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}