diff --git a/.github/workflows/deploy-latest.yaml b/.github/workflows/deploy-latest.yaml new file mode 100644 index 0000000..9c353b4 --- /dev/null +++ b/.github/workflows/deploy-latest.yaml @@ -0,0 +1,19 @@ +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 }}' +