Fix pages condition

This commit is contained in:
object-Object 2023-08-28 22:57:26 -04:00
parent 1d0f65d76d
commit 2fd0180b1b

View file

@ -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 }}