Skip to content

Add workflow to create xml, html, txt and pdf #1

Add workflow to create xml, html, txt and pdf

Add workflow to create xml, html, txt and pdf #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@v4
- name: cache xml2rfc cache
id: xml2rfc-cache
uses: actions/cache@v4
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-nro-sidrops-ta-constraints.md > output/draft-nro-sidrops-ta-constraints.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 --pdf output/draft-nro-sidrops-ta-constraints.xml
- name: Archive output
uses: actions/upload-artifact@v4
with:
name: xml2rfc-output
path: output/