Skip to content

Commit

Permalink
ci: allow turning off docs publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jan 23, 2025
1 parent 4853724 commit 7c19016
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ash-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
HEX_API_KEY:
required: false
inputs:
publish-docs:
type: boolean
default: true
spark-formatter:
type: boolean
default: true
Expand Down Expand Up @@ -76,6 +79,7 @@ jobs:
build-docs:
name: mix docs
runs-on: ubuntu-latest
if: ${{inputs.publish-docs}}
needs:
- build-test
steps:
Expand All @@ -93,7 +97,7 @@ jobs:
needs:
- build-test
- build-docs
if: github.ref == 'refs/heads/main'
if: ${{inputs.publish-docs && github.ref == 'refs/heads/main'}}
permissions:
pages: write
id-token: write
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ jobs:
with:
sat-solver: ${{ matrix.sat_solver }}
igniter-upgrade: ${{matrix.sat_solver == 'SimpleSat'}}
publish-docs: ${{matrix.sat_solver == "Picosat"}}

0 comments on commit 7c19016

Please sign in to comment.