1
+ ---
1
2
name : Create Specification Document
2
3
3
4
# The workflow is triggered by pull request, push to main, and manual dispatch.
9
10
required : true
10
11
type : string
11
12
revision_mark :
12
- description : ' Set revision mark as Draft, Release or Stable:'
13
- required : true
14
- type : string
15
- default : ' Draft'
13
+ description : ' Set revision mark as Draft, Release or Stable:'
14
+ required : true
15
+ type : string
16
+ default : Draft
16
17
prerelease :
17
- description : ' Tag as a pre-release?'
18
+ description : Tag as a pre-release?
18
19
required : false
19
20
type : boolean
20
21
default : true
21
22
draft :
22
- description : ' Create release as a draft?'
23
+ description : Create release as a draft?
23
24
required : false
24
25
type : boolean
25
26
default : false
@@ -33,41 +34,41 @@ jobs:
33
34
runs-on : ubuntu-latest
34
35
35
36
steps :
36
- # Step 1: Checkout the repository
37
- - name : Checkout repository
38
- uses : actions/checkout@v3
39
- with :
40
- submodules : ' recursive'
37
+ # Step 1: Checkout the repository
38
+ - name : Checkout repository
39
+ uses : actions/checkout@v3
40
+ with :
41
+ submodules : recursive
41
42
42
- # Step 2: Pull the latest RISC-V Docs container image
43
- - name : Pull Container
44
- run : docker pull riscvintl/riscv-docs-base-container-image:latest
43
+ # Step 2: Pull the latest RISC-V Docs container image
44
+ - name : Pull Container
45
+ run : docker pull riscvintl/riscv-docs-base-container-image:latest
45
46
46
- # Step 3: Build Files
47
- - name : Build Files
48
- run : make
49
- env :
50
- VERSION : v${{ github.event.inputs.version }}
51
- REVMARK : ${{ github.event.inputs.revision_mark }}
47
+ # Step 3: Build Files
48
+ - name : Build Files
49
+ run : make
50
+ env :
51
+ VERSION : v${{ github.event.inputs.version }}
52
+ REVMARK : ${{ github.event.inputs.revision_mark }}
52
53
53
- # Step 4: Upload the built PDF files as a single artifact
54
- - name : Upload Build Artifacts
55
- uses : actions/upload-artifact@v3
56
- with :
57
- name : Build Artifacts
58
- path : ${{ github.workspace }}/*.pdf
59
- retention-days : 30
54
+ # Step 4: Upload the built PDF files as a single artifact
55
+ - name : Upload Build Artifacts
56
+ uses : actions/upload-artifact@v3
57
+ with :
58
+ name : Build Artifacts
59
+ path : ${{ github.workspace }}/*.pdf
60
+ retention-days : 30
60
61
61
- # Create Release
62
- - name : Create Release
63
- uses : softprops/action-gh-release@v1
64
- with :
65
- files : ${{ github.workspace }}/*.pdf
66
- tag_name : v${{ github.event.inputs.version }}
67
- name : Release ${{ github.event.inputs.version }}
68
- draft : ${{ github.event.inputs.draft }}
69
- prerelease : ${{ github.event.inputs.prerelease }}
70
- env :
71
- GITHUB_TOKEN : ${{ secrets.GHTOKEN }}
72
- if : github.event_name == 'workflow_dispatch'
73
- # This condition ensures this step only runs for workflow_dispatch events.
62
+ # Create Release
63
+ - name : Create Release
64
+ uses : softprops/action-gh-release@v1
65
+ with :
66
+ files : ${{ github.workspace }}/*.pdf
67
+ tag_name : v${{ github.event.inputs.version }}
68
+ name : Release ${{ github.event.inputs.version }}
69
+ draft : ${{ github.event.inputs.draft }}
70
+ prerelease : ${{ github.event.inputs.prerelease }}
71
+ env :
72
+ GITHUB_TOKEN : ${{ secrets.GHTOKEN }}
73
+ if : github.event_name == 'workflow_dispatch'
74
+ # This condition ensures this step only runs for workflow_dispatch events.
0 commit comments