Merge pull request #1 from jgcumming/main #5
This file contains 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 RFC | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
- name: Compile draft or RFC | |
run: | | |
mkdir -p build | |
for file in draft-*.xml; do | |
xml2rfc --text --html -b build $file | |
done | |
- name: Store artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: draft-ietf-netconf-privcand | |
path: | | |
build/*.txt | |
build/*.html | |
retention-days: 5 | |