diff --git a/.github/workflows/docs-build-pr.yml b/.github/workflows/docs-build-pr.yml index 48faa369..1681063c 100644 --- a/.github/workflows/docs-build-pr.yml +++ b/.github/workflows/docs-build-pr.yml @@ -39,10 +39,10 @@ jobs: - name: Install dependencies run: | - pip install --no-cache-dir "setuptools >= 45.0" "setuptools_scm[toml] >= 6.2" + pip install -U build hatch hatchling pip twine docutils pip install -r docs/requirements.txt + python -m hatch version | tail -n1 | xargs - name: Build docs run: | - python -m setuptools_scm # Generate _version.py file make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html diff --git a/.github/workflows/docs-build-update.yml b/.github/workflows/docs-build-update.yml index bf73fa7c..90c2faf3 100644 --- a/.github/workflows/docs-build-update.yml +++ b/.github/workflows/docs-build-update.yml @@ -42,12 +42,12 @@ jobs: - name: Install dependencies run: | - pip install --no-cache-dir "setuptools >= 45.0" "setuptools_scm[toml] >= 6.2" + pip install -U build hatch hatchling pip twine docutils pip install -r docs/requirements.txt + python -m hatch version | tail -n1 | xargs - name: Build docs run: | - python -m setuptools_scm # Generate _version.py file make -C docs/ SPHINXOPTS="-W" BUILDDIR="$HOME/docs" OUTDIR="${CURBRANCH:-html}" html - name: Push created tag to gh-pages