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
26
27
pages :
27
- description : ' Deploy HTML to Github pages?'
28
+ description : Deploy HTML to Github pages?
28
29
required : false
29
30
type : boolean
30
31
default : false
@@ -39,57 +40,57 @@ jobs:
39
40
40
41
steps :
41
42
# Checkout the repository
42
- - name : Checkout repository
43
- uses : actions/checkout@v3
44
- with :
45
- submodules : ' recursive'
43
+ - name : Checkout repository
44
+ uses : actions/checkout@v3
45
+ with :
46
+ submodules : recursive
46
47
47
48
# Pull the latest RISC-V Docs container image
48
- - name : Pull Container
49
- run : docker pull riscvintl/riscv-docs-base-container-image:latest
49
+ - name : Pull Container
50
+ run : docker pull riscvintl/riscv-docs-base-container-image:latest
50
51
51
52
# Build PDF and HTML.
52
- - name : Build Files
53
- run : make all
54
- env :
55
- VERSION : v${{ github.event.inputs.version }}
56
- REVMARK : ${{ github.event.inputs.revision_mark }}
53
+ - name : Build Files
54
+ run : make all
55
+ env :
56
+ VERSION : v${{ github.event.inputs.version }}
57
+ REVMARK : ${{ github.event.inputs.revision_mark }}
57
58
58
59
# Upload the built PDF and HTML files as a single artifact
59
- - name : Upload Build Artifacts
60
- uses : actions/upload-artifact@v3
61
- with :
62
- name : Build Artifacts
63
- path : |
64
- build/*.pdf
65
- build/*.html
66
- retention-days : 30
60
+ - name : Upload Build Artifacts
61
+ uses : actions/upload-artifact@v3
62
+ with :
63
+ name : Build Artifacts
64
+ path : |
65
+ build/*.pdf
66
+ build/*.html
67
+ retention-days : 30
67
68
68
69
# Upload gitlab pages artefact.
69
- - name : Make gitlab pages directory
70
- run : mkdir dist && cp build/*.html dist/index.html
71
- if : github.event_name == 'workflow_dispatch'
70
+ - name : Make gitlab pages directory
71
+ run : mkdir dist && cp build/*.html dist/index.html
72
+ if : github.event_name == 'workflow_dispatch'
72
73
73
- - name : Upload artifact
74
- uses : actions/upload-pages-artifact@v3
75
- with :
76
- path : dist
77
- if : github.event_name == 'workflow_dispatch'
74
+ - name : Upload artifact
75
+ uses : actions/upload-pages-artifact@v3
76
+ with :
77
+ path : dist
78
+ if : github.event_name == 'workflow_dispatch'
78
79
79
80
# Create Release
80
- - name : Create Release
81
- uses : softprops/action-gh-release@v1
82
- with :
83
- files : |
84
- build/*.pdf
85
- build/*.html
86
- tag_name : v${{ github.event.inputs.version }}
87
- name : Release ${{ github.event.inputs.version }}
88
- draft : ${{ github.event.inputs.draft }}
89
- prerelease : ${{ github.event.inputs.prerelease }}
90
- env :
91
- GITHUB_TOKEN : ${{ secrets.GHTOKEN }}
92
- if : github.event_name == 'workflow_dispatch'
81
+ - name : Create Release
82
+ uses : softprops/action-gh-release@v1
83
+ with :
84
+ files : |
85
+ build/*.pdf
86
+ build/*.html
87
+ tag_name : v${{ github.event.inputs.version }}
88
+ name : Release ${{ github.event.inputs.version }}
89
+ draft : ${{ github.event.inputs.draft }}
90
+ prerelease : ${{ github.event.inputs.prerelease }}
91
+ env :
92
+ GITHUB_TOKEN : ${{ secrets.GHTOKEN }}
93
+ if : github.event_name == 'workflow_dispatch'
93
94
# This condition ensures this step only runs for workflow_dispatch events.
94
95
95
96
# Deploy HTML to Github pages.
0 commit comments