From 954147c7a54bc995bff84b6b98f746f56a88f350 Mon Sep 17 00:00:00 2001 From: Ryan McLean Date: Fri, 16 Jan 2026 17:31:42 +0000 Subject: [PATCH] Remove needless dropdown --- .github/workflows/deploy.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 19d2d70..a902692 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -3,18 +3,10 @@ name: Deploy to Cloudflare Pages on: workflow_dispatch: inputs: - env_name: - description: 'Environment to deploy' - required: true - default: 'dev' - type: choice - options: - - dev - - prod calver_tag: - description: 'CalVer tag to promote to prod (leave blank for dev)' + description: "CalVer tag to promote to prod (leave blank for dev)" required: false - default: '' + default: "" permissions: contents: write @@ -22,7 +14,7 @@ permissions: jobs: release-dev: - if: ${{ github.event.inputs.env_name == 'dev' }} + if: ${{ github.event.inputs.calver_tag == '' }} runs-on: ubuntu-latest outputs: calver_tag: ${{ steps.setver.outputs.calver_tag }} @@ -30,8 +22,8 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: '20' - cache: 'npm' + node-version: "20" + cache: "npm" - run: npm ci - run: npm run build @@ -64,7 +56,7 @@ jobs: githubToken: ${{ secrets.GITHUB_TOKEN }} promote-to-prod: - if: ${{ github.event.inputs.env_name == 'prod' && github.event.inputs.calver_tag != '' }} + if: ${{ github.event.inputs.calver_tag != '' }} runs-on: ubuntu-latest steps: - uses: actions/checkout@v4