Skip to content

Commit

Permalink
ci: Deploy 'main' branch as staging environment
Browse files Browse the repository at this point in the history
  • Loading branch information
attakei committed Nov 13, 2024
1 parent a116c04 commit 2753714
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/deploy-latest.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Deployment staging'

on:
push:
branches:
- 'main'

jobs:
deploy:
runs-on: 'ubuntu-latest'
name: 'Deploy workers'
environment: 'staging'
steps:
- uses: actions/checkout@v4
- name: 'Deploy'
uses: cloudflare/wrangler-action@v3
with:
apiToken: '${{ secrets.CLOUDFLARE_API_TOKEN }}'
command: 'deploy --name ${{ secrets.CLOUDFLARE_WORKER_NAME }}'

0 comments on commit 2753714

Please sign in to comment.