From fc1bfbca0c2795e0faa0e01c0e92a14962123256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20Vince=20Varga?= Date: Tue, 12 Nov 2024 13:26:19 +0100 Subject: [PATCH] add deploy to cloudflare button --- .github/workflows/cloudflare.yml | 16 ++++++++++++++++ README.md | 2 ++ 2 files changed, 18 insertions(+) create mode 100644 .github/workflows/cloudflare.yml diff --git a/.github/workflows/cloudflare.yml b/.github/workflows/cloudflare.yml new file mode 100644 index 0000000..01a0d79 --- /dev/null +++ b/.github/workflows/cloudflare.yml @@ -0,0 +1,16 @@ +name: Deploy Worker +on: + push: {} + pull_request: {} + repository_dispatch: {} +jobs: + deploy: + runs-on: ubuntu-latest + timeout-minutes: 60 + 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 }} \ No newline at end of file diff --git a/README.md b/README.md index 3415fab..944be14 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,8 @@ Currently designed to run on CloudFlare Workers. +[![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/Markcanfly/ical-filter) + ## Usage Deploy to CloudFlare Workers.