Merge pull request #2 from ties/feature/github-ci #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Markdown to RFC | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check Out Repo | |
uses: actions/checkout@v2 | |
- name: cache xml2rfc cache | |
id: xml2rfc-cache | |
uses: actions/cache@v2 | |
with: | |
key: xml2rfc-cache | |
path: .cache-xml2rfc | |
- name: create output dir | |
run: | | |
mkdir output | |
- name: build XML | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: paulej/rfctools | |
options: -v ${{ github.workspace }}:/rfc -v ${{ github.workspace }}/.cache-xml2rfc:/var/cache/xml2rfc -w /rfc | |
run: mmark "draft-timbru-sidrops-aspa-notation-01.md" > "output/draft-timbru-sidrops-aspa-notation-01.xml" | |
- name: build html | |
uses: addnab/docker-run-action@v3 | |
with: | |
image: paulej/rfctools | |
options: -v ${{ github.workspace }}:/rfc -v ${{ github.workspace }}/.cache-xml2rfc:/var/cache/xml2rfc -w /rfc | |
run: xml2rfc -p output --text --html "output/draft-timbru-sidrops-aspa-notation-01.xml" | |
- name: Archive output | |
uses: actions/upload-artifact@v2 | |
with: | |
name: xml2rfc-output | |
path: output/ |