Skip to content

Commit

Permalink
Merge branch 'main' of github.com:riscv/docs-spec-template
Browse files Browse the repository at this point in the history
  • Loading branch information
wmat committed Jun 7, 2024
2 parents 3900258 + e9480aa commit 23a7e04
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,16 @@ name: Create Specification Document
on:
workflow_dispatch:
inputs:
version:
description: 'Release version, e.g. X.Y.Z:'
required: true
type: string
revision_mark:
description: 'Set revision mark as Draft, Release or Stable:'
required: true
type: choice
options:
- Draft
- Release
- Development
- Stable
default: Draft
- Frozen
- Ratified
default: Development
prerelease:
description: Tag as a pre-release?
required: false
Expand All @@ -44,14 +41,21 @@ jobs:
with:
submodules: recursive

- name: Get next version
uses: reecetech/[email protected]
id: version
with:
scheme: semver
increment: patch

# Pull the latest RISC-V Docs container image
- name: Pull Container
run: docker pull riscvintl/riscv-docs-base-container-image:latest

# Override VERSION and REVMARK for manual workflow dispatch
- name: Update environment variables
run: |
echo "VERSION=v${{ github.event.inputs.version }}" >> "$GITHUB_ENV"
echo "VERSION=v${{ steps.version.outputs.version }}" >> "$GITHUB_ENV"
echo "REVMARK=${{ github.event.inputs.revision_mark }}" >> "$GITHUB_ENV"
if: github.event_name == 'workflow_dispatch'

Expand All @@ -72,8 +76,8 @@ jobs:
uses: softprops/action-gh-release@v1
with:
files: ${{ github.workspace }}/build/*.pdf
tag_name: v${{ github.event.inputs.version }}
name: Release ${{ github.event.inputs.version }}
tag_name: v${{ steps.version.outputs.version }}
name: Release ${{ steps.version.outputs.version }}
draft: ${{ github.event.inputs.draft }}
prerelease: ${{ github.event.inputs.prerelease }}
env:
Expand Down
4 changes: 1 addition & 3 deletions src/spec-sample.adoc
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
= RISC-V Example Specification Document (Zexmpl)
Authors: Author 1, Author 2
include::../docs-resources/global-config.adoc[]
:docgroup: RISC-V Task Group
:description: RISC-V Example Specification Document (Zexmpl)
:company: RISC-V.org
:revdate: 1/2023
:revnumber: 1.0
:revremark: This document is under development. Expect potential changes. Visit http://riscv.org/spec-state for further details.
:revinfo:
:url-riscv: http://riscv.org
:doctype: book
:preface-title: Preamble
:colophon:
:appendix-caption: Appendix
Expand Down

0 comments on commit 23a7e04

Please sign in to comment.