diff --git a/.github/workflows/deploy-latest.yaml b/.github/workflows/deploy-latest.yaml new file mode 100644 index 0000000..92832b0 --- /dev/null +++ b/.github/workflows/deploy-latest.yaml @@ -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 }}' +