Fix pages condition
This commit is contained in:
parent
1d0f65d76d
commit
2fd0180b1b
1 changed files with 2 additions and 8 deletions
10
.github/workflows/build_docs.yml
vendored
10
.github/workflows/build_docs.yml
vendored
|
@ -92,15 +92,13 @@ jobs:
|
|||
generate:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
continue-on-error: true
|
||||
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
lang: ${{ fromJson(needs.build.outputs.matrix) }}
|
||||
|
||||
outputs:
|
||||
success: ${{ steps.build-web-book.outputs.success }}
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
|
@ -118,8 +116,7 @@ jobs:
|
|||
run: pip install *.whl
|
||||
|
||||
- name: Build web book
|
||||
id: build-web-book
|
||||
run: $HEXDOC --lang ${{ matrix.lang }} -o _site && echo "success=true" >> "$GITHUB_OUTPUT"
|
||||
run: $HEXDOC --lang ${{ matrix.lang }} -o _site
|
||||
|
||||
- name: Upload Pages artifact
|
||||
uses: actions/upload-pages-artifact@v2
|
||||
|
@ -128,9 +125,6 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
needs: generate
|
||||
|
||||
# deploy if at least one language succeeded
|
||||
if: needs.generate.outputs.success
|
||||
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
|
Loading…
Reference in a new issue