diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 7d7924f52..1045ded27 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 @@ -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 \ No newline at end of file