🤠 Wrangler Action #404
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: "🤠 Wrangler Action" | |
on: | |
push: | |
branches: [main] | |
paths: [workers/**] | |
schedule: | |
- cron: "0 02 * * */2" | |
workflow_dispatch: | |
inputs: | |
environment: | |
description: "Choose an environment to deploy to: <dev|staging|prod>" | |
default: "prod" | |
required: true | |
jobs: | |
deploy: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
environment: wrangler | |
if: github.repository == 'digital-clouds/space' | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4 | |
- name: "🤠 Digital Space" | |
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
workingDirectory: "workers/digital-space" | |
command: publish | |
- name: "🤠 GCP Space" | |
uses: cloudflare/wrangler-action@f84a562284fc78278ff9052435d9526f9c718361 # v3 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
workingDirectory: "workers/gcp-space" | |
command: publish |