name: Deploy Cloudflare Worker on: push: branches: - master paths: - tools/workers/** jobs: deploy: runs-on: ubuntu-latest name: Deploy environment: production steps: - uses: actions/checkout@v2 - name: Publish uses: cloudflare/wrangler-action@v3.3.1 with: apiToken: ${{ secrets.CF_API_TOKEN }} accountId: ${{ secrets.CF_ACCOUNT_ID }} workingDirectory: 'tools/workers'