Skip to content

🤠 Wrangler Action #691

🤠 Wrangler Action

🤠 Wrangler Action #691

---
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: production
if: github.repository == 'digital-clouds/space'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: "🤠 Digital Space"
uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
workingDirectory: "workers/digital-space"
command: publish
- name: "🤠 GCP Space"
uses: cloudflare/wrangler-action@ebbaa1584979971c8614a24965b4405ff95890e0 # v4.0.0
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
workingDirectory: "workers/gcp-space"
command: publish