Fix checkout directory for versioning

This commit is contained in:
object-Object 2023-09-02 14:44:42 -04:00
parent dae4c8c2c9
commit 29aedb3d8b
2 changed files with 11 additions and 11 deletions

View file

@ -62,9 +62,6 @@ jobs:
with:
python-version: "3.11"
cache: pip
- name: Install docgen from source
run: pip install . hatch
- name: Get Pages url
id: get-url
@ -72,10 +69,6 @@ jobs:
url=$(gh api "repos/$GITHUB_REPOSITORY/pages" --jq '.html_url')
echo "pages-url=$url" >> "$GITHUB_OUTPUT"
echo "GITHUB_PAGES_URL=$url" >> "$GITHUB_ENV"
- name: List book languages
id: list-langs
run: echo "matrix=$($HEXDOC --list-langs)" >> "$GITHUB_OUTPUT"
- name: Check if this is a release
id: check-release
@ -91,13 +84,14 @@ jobs:
ref: ${{ inputs.branch }}
path: _branch_src
- name: Get hexdoc command
- name: Get hexdoc command and set build variables
id: get-hexdoc-cmd
run: |
if ${{ steps.checkout-input.outcome != 'skipped' }}; then
if [[ '${{ steps.checkout-input.outcome }}' == 'skipped' ]]; then
props='doc/properties.toml'
else
props='_branch_src/doc/properties.toml'
echo "HATCH_GRADLE_DIR='_branch_src'" >> "$GITHUB_ENV"
fi
hexdoc="hexdoc $props --ci --is-release ${{ steps.check-release.outputs.release == true }}"
@ -106,6 +100,13 @@ jobs:
echo "hexdoc=$hexdoc" >> "$GITHUB_OUTPUT"
echo "HEXDOC=$hexdoc" >> "$GITHUB_ENV"
- name: Install docgen from source
run: pip install . hatch
- name: List book languages
id: list-langs
run: echo "matrix=$($HEXDOC --list-langs)" >> "$GITHUB_OUTPUT"
- name: Export web book
run: $HEXDOC --export-only

View file

@ -1,5 +1,5 @@
[build-system]
requires = ["hatchling", "hatch-gradle-version>=0.4.0"]
requires = ["hatchling", "hatch-gradle-version>=0.5.0"]
build-backend = "hatchling.build"
# project metadata
@ -43,7 +43,6 @@ hexdoc_merge = "hexdoc.hexdoc_merge:main"
scheme = "gradle"
source = "gradle-properties"
py-path = "doc/src/hexdoc/__version__.py"
gradle-path = "0.9.5/gradle.properties"
# directory inclusion