From 59944e19dbc4109e183045a049ae700ca580443a Mon Sep 17 00:00:00 2001 From: Prad Nukala Date: Mon, 7 Oct 2024 21:28:50 -0400 Subject: [PATCH] feat: add workflow for deploying Hway to Cloudflare Workers --- .github/workflows/deploy-hway.yml | 18 ++++++++++++++++++ .github/workflows/scheduled-release.yml | 2 ++ 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/deploy-hway.yml diff --git a/.github/workflows/deploy-hway.yml b/.github/workflows/deploy-hway.yml new file mode 100644 index 000000000..7ea78c5f1 --- /dev/null +++ b/.github/workflows/deploy-hway.yml @@ -0,0 +1,18 @@ +name: Deploy Hway (sonr.id) + +on: + push: + branches: + - develop + +jobs: + deploy: + runs-on: ubuntu-latest + name: Deploy Sonr.ID on Cloudflare + steps: + - uses: actions/checkout@v4 + - name: Deploy + uses: cloudflare/wrangler-action@v3 + with: + apiToken: ${{ secrets.CF_WORKERS_TOKEN }} + workingDirectory: web diff --git a/.github/workflows/scheduled-release.yml b/.github/workflows/scheduled-release.yml index c60173b3c..a75cdd1a9 100644 --- a/.github/workflows/scheduled-release.yml +++ b/.github/workflows/scheduled-release.yml @@ -5,6 +5,8 @@ on: push: tags: - v* + branches: + - master permissions: contents: write