-
Notifications
You must be signed in to change notification settings - Fork 12
127 lines (118 loc) · 4.81 KB
/
jekyll-gh-pages.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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: publish
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build-rfc:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@ec02537da5712d66d4d50a0f33b7eb52773b5ed1
with:
ruby-version: '3.1'
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install kramdown-rfc
run: gem install kramdown-rfc
- name: Install xml2rfc
run: pip install xml2rfc
- name: Convert Authz API 1.0 revision 00 to rfc xml
run: kramdown-rfc2629 api/authorization-api-1_0_00.md > api/authorization-api-1_0_00.xml
- name: Render Authz API 1.0 revision 00 HTML
run: xml2rfc api/authorization-api-1_0_00.xml --html -o authorization-api-1_0_00.html
- name: Render Authz API 1.0 revision 00 Text
run: xml2rfc api/authorization-api-1_0_00.xml --text
- name: Upload Authz API 1.0 revision 00 artifact
uses: actions/upload-artifact@v4
with:
name: authorization-api-1_0_00
path: |
authorization-api-1_0_00.html
api/authorization-api-1_0_00.xml
- name: Convert Authz API 1.0 revision 01 to rfc xml
run: kramdown-rfc2629 api/authorization-api-1_0_01.md > api/authorization-api-1_0_01.xml
- name: Render Authz API 1.0 revision 01 HTML
run: xml2rfc api/authorization-api-1_0_01.xml --html -o authorization-api-1_0_01.html
- name: Render Index HTML (this is the current stable version of the spec)
run: xml2rfc api/authorization-api-1_0_01.xml --html -o index.html
- name: Render Authz API 1.0 revision 01 Text
run: xml2rfc api/authorization-api-1_0_01.xml --text
- name: Upload Authz API 1.0 revision 01 artifact
uses: actions/upload-artifact@v4
with:
name: authorization-api-1_0_01
path: |
index.html
authorization-api-1_0_01.html
api/authorization-api-1_0_01.xml
- name: Convert Authz API 1.1 revision 01 to rfc xml
run: kramdown-rfc2629 api/authorization-api-1_1_01.md > api/authorization-api-1_1_01.xml
- name: Render Authz API 1.1 revision 01 HTML
run: xml2rfc api/authorization-api-1_1_01.xml --html -o authorization-api-1_1_01.html
- name: Render Authz API 1.1 revision 01 Text
run: xml2rfc api/authorization-api-1_1_01.xml --text
- name: Upload Authz API 1.1 revision 01 artifact
uses: actions/upload-artifact@v4
with:
name: authorization-api-1_1_01
path: |
authorization-api-1_1_01.html
api/authorization-api-1_1_01.xml
- name: Convert Authz API Original to rfc xml
run: kramdown-rfc2629 api/authorization-api-1_0-original.md > api/authorization-api-1_0-original.xml
- name: Render Authz API Original HTML
run: xml2rfc api/authorization-api-1_0-original.xml --html -o authorization-api-1_0-original.html
- name: Render Authz API Original Text
run: xml2rfc api/authorization-api-1_0-original.xml --text
- name: Upload Authz API Original artifact
uses: actions/upload-artifact@v4
with:
name: authorization-api-1_0-original
path: |
authorization-api-1_0-original.html
api/authorization-api-1_0-original.xml
- name: Convert Authz Design Patterns to rfc xml
run: kramdown-rfc2629 patterns/AuthorizationDesignPatterns.md > patterns/AuthorizationDesignPatterns.xml
- name: Render Authz Design Patterns HTML
run: xml2rfc patterns/AuthorizationDesignPatterns.xml --html -o patterns.html
- name: Render Authz Design Patterns Text
run: xml2rfc patterns/AuthorizationDesignPatterns.xml --text
- name: Upload Authz Design Patterns artifact
uses: actions/upload-artifact@v4
with:
name: patterns-doc
path: |
patterns.html
patterns/AuthorizationDesignPatterns.xml
publish-to-pages:
if: github.ref == 'refs/heads/main'
needs: [build-rfc]
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@v4
with:
pattern: authorization-api-*
path: .
merge-multiple: true
- name: Download artifact - pattern document
uses: actions/download-artifact@v4
with:
name: patterns-doc
- name: Upload pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: .
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4