diff options
author | Jeff Scheel <jeff@riscv.org> | 2022-11-16 17:00:04 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-16 17:00:04 -0500 |
commit | fe5d29c51bca687442039f7d9a51e2d368578095 (patch) | |
tree | 0b8d29345b91021339eff9342ca8b1e64cdd05fa /.github | |
parent | 3fff05f0fd4fda4e16cdcbed1bdbf76bd2ea6b99 (diff) | |
download | riscv-isa-manual-fe5d29c51bca687442039f7d9a51e2d368578095.zip riscv-isa-manual-fe5d29c51bca687442039f7d9a51e2d368578095.tar.gz riscv-isa-manual-fe5d29c51bca687442039f7d9a51e2d368578095.tar.bz2 |
Add from docs-spec-template
Signed-off-by: Jeff Scheel <jeff@riscv.org>
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/create-release.yml | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..1f18485 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,55 @@ +# This work flow includes source and PDF in Release. It relies on the build-pdf workflow to create the PDF. +# +# NOTE: At this time it only runs manually. + +name: Create Document Release + +on: + workflow_dispatch: + inputs: + version: + description: 'Release version, e.g. X.Y.Z:' + required: true + type: string + prerelease: + description: 'Tag as a pre-release?' + required: false + type: boolean + default: true + draft: + description: 'Create release as a draft?' + required: false + type: boolean + default: false + +jobs: + build: + uses: ./.github/workflows/build-pdf.yml + release: + runs-on: ubuntu-latest + needs: build + steps: + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: v${{ github.event.inputs.version }} + release_name: Release ${{ github.event.inputs.version }} + draft: ${{ github.event.inputs.draft }} + prerelease: ${{ github.event.inputs.prerelease }} + - name: Download Artifacts + uses: actions/download-artifact@v3 + with: + name: ${{ needs.build.outputs.pdf-name }} + - name: Upload Release Asset + id: upload-release-asset + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ${{ needs.build.outputs.pdf-name }} + asset_name: ${{ needs.build.outputs.name }}_${{ github.event.inputs.version }}.pdf + asset_content_type: application/pdf |