-
Notifications
You must be signed in to change notification settings - Fork 2
78 lines (72 loc) · 1.93 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
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-pushpull:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Ruby
uses: ruby/setup-ruby@v1
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 pushpull md to xml
run: kramdown-rfc2629 draft-tulshibagwale-saag-pushpull-delivery.md > draft-tulshibagwale-saag-pushpull-delivery.xml
- name: Render HTML
run: xml2rfc draft-tulshibagwale-saag-pushpull-delivery.xml --html -o index.html
- name: Render Text
run: xml2rfc draft-tulshibagwale-saag-pushpull-delivery.xml --text
- name: Upload artifact
id: deployment
uses: actions/upload-pages-artifact@v3
with:
path: |
index.html
draft-tulshibagwale-saag-pushpull-delivery.txt
# Deployment job
deploy:
if: github.ref == 'refs/heads/main'
needs: [build-pushpull]
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4