Skip to content

ci: Deploy 'main' branch as staging environment #1

ci: Deploy 'main' branch as staging environment

ci: Deploy 'main' branch as staging environment #1

name: 'Deployment staging'
on:
push:
branches:
- 'main'
jobs:
deploy:
runs-on: 'ubuntu-latest'
name: 'Deploy workers'
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 }}'