Skip to content

Commit

Permalink
can force a deploy/turbo:all
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexErrant committed Oct 20, 2024
1 parent 81735e3 commit b36b554
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,18 @@
name: CI/CD

on:
workflow_dispatch: {}
workflow_dispatch:
inputs:
forceTurboAll:
description: 'force turbo:all'
required: false
type: boolean
default: "false"
forceDeploy:
description: 'force a deploy'
required: false
type: boolean
default: "false"
push:
branches:
- main
Expand Down Expand Up @@ -59,10 +70,13 @@ jobs:
run: pnpm install

- name: turbo
run: npx turbo run tsc-build eslint check test:run build
run: pnpm turbo:all --force $FORCE_TURBO_ALL
env:
FORCE_TURBO_ALL: ${{ inputs.forceTurboAll }}

- name: deploy
run: pnpm run deploy-only
run: pnpm run deploy-only --force $FORCE_DEPLOY
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
FORCE_DEPLOY: ${{ inputs.forceDeploy }}

0 comments on commit b36b554

Please sign in to comment.