Skip to content

Commit

Permalink
fix deploy environment
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhouweling committed Nov 5, 2024
1 parent ef07a62 commit 07349ff
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }}
environment: ${{ github.event.workflow_run.head_branch == 'main' && 'production' || 'staging' }}
if: ${{ github.event.workflow_run.conclusion == 'success' }}
timeout-minutes: 60
timeout-minutes: 10
steps:
- name: Debug
run: ${{ tojson(github.event) }}
shell: cat {0}

- name: Check out Git repository
uses: actions/checkout@v4

Expand All @@ -38,7 +42,7 @@ jobs:
wranglerVersion: 3.84.1
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
environment: ${{ github.ref == 'refs/heads/main' && 'production' || 'staging' }}
environment: ${{ github.event.workflow_run.head_branch == 'main' && 'production' || 'staging' }}
vars: |
DISCORD_APP_ID
DISCORD_PUBLIC_KEY
Expand Down

0 comments on commit 07349ff

Please sign in to comment.