Skip to content

Merge pull request #2 from ties/feature/github-ci #1

Merge pull request #2 from ties/feature/github-ci

Merge pull request #2 from ties/feature/github-ci #1

Workflow file for this run

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/