Skip to content

Commit c0e6903

Browse files
authored
Create build-everything.yml (#72)
* Create build-everything.yml * fixing script * Update build-everything.yml * switched to kramdown-rfc for caep * trying without caep autobuild * removed superfluous code
1 parent a7272ae commit c0e6903

File tree

1 file changed

+47
-0
lines changed

1 file changed

+47
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: publish
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build-sharedsignals:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Set up Ruby
17+
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
18+
with:
19+
ruby-version: '3.1'
20+
- uses: actions/setup-python@v4
21+
with:
22+
python-version: '3.10'
23+
- name: Install kramdown-rfc
24+
run: gem install kramdown-rfc
25+
- name: Install xml2rfc
26+
run: pip install xml2rfc
27+
- name: Convert sharedsignals md to xml
28+
run: kramdown-rfc2629 openid-sharedsignals-framework-1_0.md > openid-sharedsignals-framework-1_0.xml
29+
- name: Render HTML
30+
run: xml2rfc openid-sharedsignals-framework-1_0.xml --html -o openid-sharedsignals-framework-1_0.html
31+
- name: Render Text
32+
run: xml2rfc openid-sharedsignals-framework-1_0.xml --text
33+
- name: Render risc html
34+
run: xml2rfc openid-risc-profile-specification-1_0.xml --html -o openid-risc-profile-specification-1_0.html
35+
- name: Render risc text
36+
run: xml2rfc openid-risc-profile-specification-1_0.xml --text -o openid-risc-profile-specification-1_0.txt
37+
- name: Upload artifact
38+
uses: actions/upload-artifact@v2
39+
with:
40+
name: output
41+
path: |
42+
openid-sharedsignals-framework-1_0.html
43+
openid-sharedsignals-framework-1_0.txt
44+
openid-caep-specification-1_0.html
45+
openid-caep-specification-1_0.txt
46+
openid-risc-profile-specification-1_0.html
47+
openid-risc-profile-specification-1_0.txt

0 commit comments

Comments
 (0)