Skip to content

Commit 23a7e04

Browse files
committed
Merge branch 'main' of github.com:riscv/docs-spec-template
2 parents 3900258 + e9480aa commit 23a7e04

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

.github/workflows/build-pdf.yml

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@ name: Create Specification Document
55
on:
66
workflow_dispatch:
77
inputs:
8-
version:
9-
description: 'Release version, e.g. X.Y.Z:'
10-
required: true
11-
type: string
128
revision_mark:
139
description: 'Set revision mark as Draft, Release or Stable:'
1410
required: true
1511
type: choice
1612
options:
17-
- Draft
18-
- Release
13+
- Development
1914
- Stable
20-
default: Draft
15+
- Frozen
16+
- Ratified
17+
default: Development
2118
prerelease:
2219
description: Tag as a pre-release?
2320
required: false
@@ -44,14 +41,21 @@ jobs:
4441
with:
4542
submodules: recursive
4643

44+
- name: Get next version
45+
uses: reecetech/version-increment@2024.4.4
46+
id: version
47+
with:
48+
scheme: semver
49+
increment: patch
50+
4751
# Pull the latest RISC-V Docs container image
4852
- name: Pull Container
4953
run: docker pull riscvintl/riscv-docs-base-container-image:latest
5054

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

@@ -72,8 +76,8 @@ jobs:
7276
uses: softprops/action-gh-release@v1
7377
with:
7478
files: ${{ github.workspace }}/build/*.pdf
75-
tag_name: v${{ github.event.inputs.version }}
76-
name: Release ${{ github.event.inputs.version }}
79+
tag_name: v${{ steps.version.outputs.version }}
80+
name: Release ${{ steps.version.outputs.version }}
7781
draft: ${{ github.event.inputs.draft }}
7882
prerelease: ${{ github.event.inputs.prerelease }}
7983
env:

src/spec-sample.adoc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
= RISC-V Example Specification Document (Zexmpl)
22
Authors: Author 1, Author 2
3+
include::../docs-resources/global-config.adoc[]
34
:docgroup: RISC-V Task Group
45
:description: RISC-V Example Specification Document (Zexmpl)
5-
:company: RISC-V.org
66
:revdate: 1/2023
77
:revnumber: 1.0
88
:revremark: This document is under development. Expect potential changes. Visit http://riscv.org/spec-state for further details.
99
:revinfo:
10-
:url-riscv: http://riscv.org
11-
:doctype: book
1210
:preface-title: Preamble
1311
:colophon:
1412
:appendix-caption: Appendix

0 commit comments

Comments
 (0)