-
Notifications
You must be signed in to change notification settings - Fork 14
106 lines (101 loc) · 3.66 KB
/
build-everything.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: publish
on:
push:
branches: [ main ]
paths-ignore:
- README.md
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- LICENSE
- SECURITY.md
- '.github/**'
- Makefile
- contributing.md
- .gitignore
- working-group-charter.md
pull_request:
branches: [ main ]
paths-ignore:
- README.md
- CHANGELOG.md
- CODE_OF_CONDUCT.md
- LICENSE
- SECURITY.md
- '.github/**'
- Makefile
- contributing.md
- .gitignore
- working-group-charter.md
jobs:
build-sharedsignals:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '3.1'
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install kramdown-rfc
run: gem install kramdown-rfc
- name: Install xml2rfc
run: pip install xml2rfc
- name: Convert sharedsignals md to xml
run: kramdown-rfc2629 openid-sharedsignals-framework-1_0.md > openid-sharedsignals-framework-1_0.xml
- name: Render HTML
run: xml2rfc openid-sharedsignals-framework-1_0.xml --html -o openid-sharedsignals-framework-1_0.html
- name: Render Text
run: xml2rfc openid-sharedsignals-framework-1_0.xml --text
- name: Render risc html
run: xml2rfc openid-risc-profile-specification-1_0.xml --html -o openid-risc-profile-specification-1_0.html
- name: Render risc text
run: xml2rfc openid-risc-profile-specification-1_0.xml --text -o openid-risc-profile-specification-1_0.txt
- name: Convert caep md to xml
run: kramdown-rfc2629 openid-caep-specification-1_0.md > openid-caep-specification-1_0.xml
- name: Render caep html
run: xml2rfc openid-caep-specification-1_0.xml --html -o openid-caep-specification-1_0.html
- name: Render caep text
run: xml2rfc openid-caep-specification-1_0.xml --text -o openid-caep-specification-1_0.txt
- name: Convert caep-interop md to xml
run: kramdown-rfc2629 openid-caep-interoperability-profile-1_0.md > openid-caep-interoperability-profile-1_0.xml
- name: Render caep-interop html
run: xml2rfc openid-caep-interoperability-profile-1_0.xml --html -o openid-caep-interoperability-profile-1_0.html
- name: Render caep-interop text
run: xml2rfc openid-caep-interoperability-profile-1_0.xml --text -o openid-caep-interoperability-profile-1_0.txt
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: output
path: |
openid-sharedsignals-framework-1_0.html
openid-sharedsignals-framework-1_0.txt
openid-risc-profile-specification-1_0.html
openid-risc-profile-specification-1_0.txt
openid-caep-specification-1_0.html
openid-caep-specification-1_0.txt
openid-caep-interoperability-profile-1_0.html
openid-caep-interoperability-profile-1_0.txt
publish-to-pages:
if: github.ref == 'refs/heads/main'
needs: [build-sharedsignals]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Download artifact
uses: actions/download-artifact@v2
with:
name: output
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v1
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2