Skip to content

Commit 0656fa9

Browse files
add: auto generate the rfc xml file from markdown (#174)
1 parent 81bd123 commit 0656fa9

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/rfc.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Build RFC XML
2+
3+
on:
4+
push:
5+
paths: [IETF-RFC.md]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
# Ruby setup
16+
- uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: '3.2'
19+
bundler-cache: false
20+
21+
- name: Install kramdown-rfc
22+
run: gem install --no-document kramdown-rfc
23+
24+
- name: Convert Markdown → XML
25+
run: kramdown-rfc IETF-RFC.md > IETF-RFC.xml
26+
27+
# Commit the result back to the repo
28+
- uses: EndBug/add-and-commit@v9
29+
with:
30+
add: IETF-RFC.xml
31+
message: 'CI: regenerate IETF-RFC.xml'
32+
author_name: github-actions
33+
author_email: [email protected]
34+
35+
- uses: actions/upload-artifact@v4
36+
with:
37+
name: rfc-xml
38+
path: IETF-RFC.xml

0 commit comments

Comments
 (0)