From 2dbc02482882a833a99d0b4b2f228f825e32907e Mon Sep 17 00:00:00 2001 From: shadrach Date: Sat, 21 Dec 2024 15:39:11 +0100 Subject: [PATCH] add secret to workflow --- .github/workflows/deploy-sync-server.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-sync-server.yaml b/.github/workflows/deploy-sync-server.yaml index 5e7f0b6d..af45425f 100644 --- a/.github/workflows/deploy-sync-server.yaml +++ b/.github/workflows/deploy-sync-server.yaml @@ -7,7 +7,8 @@ on: branches: # array of glob patterns matching against refs/heads. Optional; defaults to all - main # triggers on pushes that contain changes - develop - +env: + API_TOKEN: ${{ secrets.API_TOKEN }} jobs: deploy: runs-on: ubuntu-latest @@ -37,6 +38,8 @@ jobs: environment: staging workingDirectory: sync-server wranglerVersion: 3.95.0 + secrets: API_TOKEN + - name: Build & Deploy Worker (Production) if: github.ref == 'refs/heads/main' uses: cloudflare/wrangler-action@v3 @@ -46,3 +49,4 @@ jobs: environment: production workingDirectory: sync-server wranglerVersion: 3.95.0 + secrets: API_TOKEN