Fix update-latest again
This commit is contained in:
parent
6e15524098
commit
c36138a6db
1 changed files with 3 additions and 3 deletions
6
.github/workflows/build_docs.yml
vendored
6
.github/workflows/build_docs.yml
vendored
|
@ -94,7 +94,7 @@ jobs:
|
||||||
echo "HATCH_GRADLE_DIR='_branch_src'" >> "$GITHUB_ENV"
|
echo "HATCH_GRADLE_DIR='_branch_src'" >> "$GITHUB_ENV"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
hexdoc="hexdoc $props --ci --is-release ${{ steps.check-release.outputs.release == true }}"
|
hexdoc="hexdoc $props --ci --is-release ${{ steps.check-release.outputs.release == true }} --update-latest ${{ github.event_name != 'workflow_dispatch' || inputs.update-latest }}"
|
||||||
|
|
||||||
echo "$hexdoc"
|
echo "$hexdoc"
|
||||||
echo "hexdoc=$hexdoc" >> "$GITHUB_OUTPUT"
|
echo "hexdoc=$hexdoc" >> "$GITHUB_OUTPUT"
|
||||||
|
@ -152,7 +152,7 @@ jobs:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
GITHUB_PAGES_URL: ${{ needs.build.outputs.pages-url }}
|
GITHUB_PAGES_URL: ${{ needs.build.outputs.pages-url }}
|
||||||
HEXDOC_GENERATE: ${{ needs.build.outputs.hexdoc }} --lang ${{ matrix.lang }} -o _site --clean --update-latest ${{ inputs.update-latest != false }}
|
HEXDOC_GENERATE: ${{ needs.build.outputs.hexdoc }} --lang ${{ matrix.lang }} -o _site --clean
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
@ -208,7 +208,7 @@ jobs:
|
||||||
path: _site/src/docs
|
path: _site/src/docs
|
||||||
|
|
||||||
- name: Add new docs to site
|
- name: Add new docs to site
|
||||||
run: hexdoc_merge --src _site/src/docs --dst _site/dst/docs --update-latest ${{ inputs.update-latest != false }}
|
run: hexdoc_merge --src _site/src/docs --dst _site/dst/docs
|
||||||
|
|
||||||
- name: Deploy to Pages
|
- name: Deploy to Pages
|
||||||
uses: JamesIves/github-pages-deploy-action@v4
|
uses: JamesIves/github-pages-deploy-action@v4
|
||||||
|
|
Loading…
Reference in a new issue