diff options
author | Rafael Sene <rafael@riscv.org> | 2023-04-26 17:19:31 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-26 17:19:31 -0300 |
commit | cc0177317ba0361a6f828985091a37510db7ccb3 (patch) | |
tree | da27deb96e8f9174eee9034839a63636842915e1 /.github/workflows | |
parent | 7875321e694bec616a5ea95a2cb909109c9c3c0b (diff) | |
download | riscv-isa-manual-cc0177317ba0361a6f828985091a37510db7ccb3.zip riscv-isa-manual-cc0177317ba0361a6f828985091a37510db7ccb3.tar.gz riscv-isa-manual-cc0177317ba0361a6f828985091a37510db7ccb3.tar.bz2 |
Update build-pdf-and-html.yml
Signed-off-by: Rafael Sene <rafael@riscv.org>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/build-pdf-and-html.yml | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/.github/workflows/build-pdf-and-html.yml b/.github/workflows/build-pdf-and-html.yml index 3e690f7..92f68d1 100644 --- a/.github/workflows/build-pdf-and-html.yml +++ b/.github/workflows/build-pdf-and-html.yml @@ -1,4 +1,4 @@ -name: Build RISC-V PRIV and UNPRIV PDFs and HTMLs Files +name: Build RISC-V ISA on: workflow_dispatch: @@ -76,3 +76,20 @@ jobs: name: riscv-privileged-latex-${{ env.SHORT_SHA }}.pdf path: ${{ github.workspace }}/build/riscv-privileged.pdf retention-days: 7 + + # Create a draft release with generated files + - name: Create Draft Release + if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/asciidoc') + uses: softprops/action-gh-release@v1 + with: + draft: true + tag_name: ${{ env.SHORT_SHA }} + release_name: Draft-${{ env.SHORT_SHA }} + files: | + ${{ github.workspace }}/build/priv-isa-asciidoc.pdf + ${{ github.workspace }}/build/priv-isa-asciidoc.html + ${{ github.workspace }}/build/unpriv-isa-asciidoc.pdf + ${{ github.workspace }}/build/unpriv-isa-asciidoc.html + ${{ github.workspace }}/build/riscv-privileged.pdf + env: + GITHUB_TOKEN: ${{ secrets.GHTOKEN }} |