Build XMLRFC and then HTML/TXT from Markdown #1
Workflow file for this run
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: Build and publish document | |
on: push | |
# branches: [main] | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install packages | |
run: apt install --no-install-recommends -y ruby-kramdown-rfc2629 xml2rfc | |
- name: Prepare output directory | |
run: mkdir build | |
- name: Kramdown to XML | |
run: kramdown-rfc webdav-push.md >build/webdav-push.xml | |
- name: XML to HTML | |
run: (cd build; xml2rfc --html webdav-push.xml) | |
- name: XML to TXT | |
run: (cd build; xml2rfc --txt webdav-push.xml) | |
- name: Publish build | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: build |