From 52630596b81592d14f0edc9bb0cddcfe13b812c1 Mon Sep 17 00:00:00 2001 From: tresabhi <43380238+tresabhi@users.noreply.github.com> Date: Wed, 12 Aug 2026 11:44:26 -0500 Subject: [PATCH] finalize workflows --- .github/workflows/ids.yaml | 3 ++- .github/workflows/website.yaml | 22 ++++++++++++++++------ 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ids.yaml b/.github/workflows/ids.yaml index 91abc55cc..c5c88b464 100644 --- a/.github/workflows/ids.yaml +++ b/.github/workflows/ids.yaml @@ -2,7 +2,7 @@ name: Discover IDs on: push: - branches: infrastructure + branches: production schedule: - cron: 0 */6 * * * @@ -23,6 +23,7 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: + ref: production submodules: recursive token: ${{ secrets.GH_TOKEN }} diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index ca11f5914..5ac92d6cf 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -2,19 +2,30 @@ name: Website on: push: + branches: production schedule: - cron: "0 4 * * *" workflow_dispatch: inputs: + branch: + description: Branch + + type: choice + required: true + default: production + + options: + - production + - main + environment: description: Environment - required: true - # default: production - default: beta type: choice + required: true + default: production options: - development @@ -32,7 +43,7 @@ concurrency: env: # blitzkit - PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'beta' }} + PUBLIC_ENVIRONMENT: ${{ inputs.environment || 'production' }} PUBLIC_PROMOTE_OPENTEST: false PUBLIC_STATIC_ASSET_BASE: https://assets.blitzkit.app PUBLIC_GUIDE_WEBSITE: https://guidesblitz.com @@ -73,6 +84,7 @@ jobs: - name: Checkout uses: actions/checkout@v6 with: + ref: ${{ inputs.branch || 'production' }} submodules: recursive token: ${{ secrets.GH_TOKEN }} @@ -137,8 +149,6 @@ jobs: - name: Trigger deployment - if: github.ref_name == 'production' || github.ref_name == 'infrastructure' - env: TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }} CHUNK: ${{ matrix.chunk }}