Skip to content

Commit

Permalink
sphinx_github_branch NEW_TAG
Browse files Browse the repository at this point in the history
Need to set this during production deployment so the "branch" value is
the git tag of the release. I don't want it to point to "main".
  • Loading branch information
Robpol86 committed Oct 14, 2023
1 parent 5b9f180 commit 8301643
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ on:
skip_lints_tests:
required: false
type: boolean
sphinx_github_branch: # For HTML diff
sphinx_github_branch: # For HTML diff and production (tag vs branch)
required: false
type: string

Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ on:
environment:
required: false
type: string
sphinx_github_branch:
required: false
type: string


jobs:
Expand All @@ -21,6 +24,7 @@ jobs:
commit: "${{ inputs.commit }}"
environment: "${{ inputs.environment || 'staging' }}"
skip_lints_tests: true
sphinx_github_branch: "${{ inputs.sphinx_github_branch }}"

Deploy:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ jobs:
with:
commit: "${{ needs.Bump.outputs.NEW_COMMIT }}"
environment: production
sphinx_github_branch: "${{ needs.Bump.outputs.NEW_TAG }}"
secrets: inherit

Release:
Expand Down

0 comments on commit 8301643

Please sign in to comment.