Add workflow to create xml, html, txt and pdf #1
This file contains hidden or 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@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/ |