diff --git a/.github/workflows/deploy-docs.yml b/.github/workflows/deploy-docs.yml index 62abde36..120a5a60 100644 --- a/.github/workflows/deploy-docs.yml +++ b/.github/workflows/deploy-docs.yml @@ -9,7 +9,7 @@ on: type: choice options: - staging - - prod + - production action_kind: required: true default: deploy_web @@ -21,16 +21,13 @@ on: project_id: required: false type: string - preview_id: - required: false - type: string jobs: web: runs-on: ubuntu-latest permissions: contents: read - environment: ${{ inputs.environment == 'prod' && 'production' || 'staging' }} + environment: ${{ inputs.environment }} defaults: run: working-directory: docs @@ -48,7 +45,6 @@ jobs: TREESEED_WORKFLOW_ACTION: ${{ inputs.action_kind }} TREESEED_WORKFLOW_ENVIRONMENT: ${{ inputs.environment }} TREESEED_WORKFLOW_PROJECT: ${{ inputs.project_id || vars.TREESEED_PROJECT_ID || 'admin' }} - TREESEED_WORKFLOW_PREVIEW_ID: ${{ inputs.preview_id }} steps: - uses: actions/checkout@v4 @@ -72,5 +68,4 @@ jobs: set -euo pipefail EXTRA_ARGS=() if [[ -n "${TREESEED_WORKFLOW_PROJECT:-}" ]]; then EXTRA_ARGS+=(--project-id "${TREESEED_WORKFLOW_PROJECT}"); fi - if [[ -n "${TREESEED_WORKFLOW_PREVIEW_ID:-}" ]]; then EXTRA_ARGS+=(--preview-id "${TREESEED_WORKFLOW_PREVIEW_ID}"); fi node ./node_modules/@treeseed/sdk/scripts/tenant-workflow-action.js --action "${TREESEED_WORKFLOW_ACTION}" --environment "${TREESEED_WORKFLOW_ENVIRONMENT}" "${EXTRA_ARGS[@]}" diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 59d993d4..0201b280 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: candidate-build: if: github.ref == 'refs/heads/staging' needs: candidate-package - environment: development + environment: staging runs-on: ${{ matrix.runner }} strategy: matrix: @@ -36,7 +36,7 @@ jobs: candidate-seal: if: github.ref == 'refs/heads/staging' needs: candidate-build - environment: development + environment: staging runs-on: ubuntu-24.04 steps: - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262