File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: generate
22
33on :
44 push :
5- branches : [ main ]
5+ branches : [main]
66 pull_request :
77 workflow_dispatch :
88
@@ -12,34 +12,10 @@ permissions:
1212 id-token : write
1313
1414concurrency :
15- group : " pages"
15+ group : pages
1616 cancel-in-progress : true
1717
1818jobs :
19- build :
20- runs-on : ubuntu-latest
21- container :
22- image : metanorma/metanorma:latest
23- steps :
24- - name : Checkout
25- uses : actions/checkout@v4
26-
27- - name : Cache Metanorma assets
28- uses : actions-mn/cache@v1
29-
30- - name : Metanorma generate site
31- uses : actions-mn/build-and-publish@v2
32- with :
33- agree-to-terms : true
34- destination : gh-pages
35- deploy :
36- if : ${{ github.ref == 'refs/heads/main' }}
37- environment :
38- name : github-pages
39- url : ${{ steps.deployment.outputs.page_url }}
40- runs-on : ubuntu-latest
41- needs : build
42- steps :
43- - name : Deploy to GitHub Pages
44- id : deployment
45- uses : actions/deploy-pages@v4
19+ site :
20+ uses : actions-mn/.github/.github/workflows/metanorma-generate.yml@v1
21+ secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ branches : [main]
6+ paths : ['sources/**', 'metanorma.yml', 'metanorma.release.yml']
7+ workflow_dispatch :
8+ inputs :
9+ include-pattern :
10+ description : ' Glob pattern to filter documents for release'
11+ required : false
12+ default : ' *'
13+ force :
14+ description : ' Force release even if content is unchanged'
15+ required : false
16+ type : boolean
17+ default : false
18+
19+ permissions :
20+ contents : write
21+
22+ jobs :
23+ release :
24+ uses : actions-mn/.github/.github/workflows/metanorma-release.yml@v1
25+ with :
26+ default-visibility : private
27+ include-pattern : ${{ github.event.inputs.include-pattern || '*' }}
28+ force : ${{ github.event.inputs.force || 'false' }}
29+ secrets : inherit
Original file line number Diff line number Diff line change 1+ documents :
2+ - source : sources/cc-58020.adoc
3+ - source : sources/draft-daboo-icalendar-vpatch.adoc
You can’t perform that action at this time.
0 commit comments