Skip to content

Commit

Permalink
workflows/publish.yml: Adds building HTML docs
Browse files Browse the repository at this point in the history
which is a requirement for the pandoc parser.
unlike i anticipated the `doctest` results don't have an HTML build as side-effect.
Thus the docs are built in the GH release job.
Metadata usage is streamlined.
  • Loading branch information
funkyfuture committed Oct 13, 2024
1 parent 90f3a2e commit 054a512
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,15 @@ jobs:
- uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
sparse-checkout: 'CHANGES.rst'
- name: Install dependencies for creating GH release
run: pip install panflute pypandoc sphinx
# TODO build docs, so that objects.inv is available
- name: Create GH release
run: >-
- uses: actions/setup-python@v5
with:
cache: pip
python-version: 3.x
- uses: extractions/setup-just@v2
- run: pipx install hatch
- run: just docs
- run: pip install panflute pypandoc sphinx
- run: >-
python .github/scripts/make-github-release.py ${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 054a512

Please sign in to comment.