Skip to content

Build XMLRFC and then HTML/TXT from Markdown #1

Build XMLRFC and then HTML/TXT from Markdown

Build XMLRFC and then HTML/TXT from Markdown #1

Workflow file for this run

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