Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
bimac committed Aug 23, 2024
1 parent 6442468 commit 0e2b9ec
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
# - '[0-9]+.[0-9]+.[0-9]+'

jobs:
documentation:
pdf:
name: Build PDF
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -18,10 +19,23 @@ jobs:
python-version-file: pyproject.toml
- name: Install requirements
run: pdm sync -dG doc
- name: Sphinx build
- name: Build PDF
run: pdm run make -C docs/ simplepdf
- uses: actions/upload-artifact@v4
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: documentation
path: docs/build/simplepdf/*.pdf
retention-days: 1

release:
name: Publish GitHub Release
steps:
- uses: actions/checkout@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: documentation
- uses: softprops/action-gh-release@v2
with:
files: documentation/*.pdf

0 comments on commit 0e2b9ec

Please sign in to comment.