diff --git a/.github/workflows/website.yaml b/.github/workflows/website.yaml index 0a745b590..44e7f39b3 100644 --- a/.github/workflows/website.yaml +++ b/.github/workflows/website.yaml @@ -2,7 +2,6 @@ name: Website on: push: - branches: production schedule: - cron: "0 4 * * *" @@ -57,7 +56,7 @@ permissions: contents: read concurrency: - group: ${{ github.workflow }}-${{ github.ref }} + group: ${{ github.workflow }}-${{ inputs.environment || 'production' }} cancel-in-progress: true env: @@ -140,6 +139,8 @@ jobs: - name: Trigger deployment + if: ${{ github.ref == 'refs/heads/production' }} + env: TOKEN: ${{ secrets.GH_NODE_DEPLOY_TOKEN }} CHUNK: ${{ matrix.chunk }}