From 0e2b9ecdcdfbc6581764699ac12ddd3a211e3224 Mon Sep 17 00:00:00 2001 From: pdesanex Date: Fri, 23 Aug 2024 09:20:09 +0100 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) 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