Momentum asciidoc #6
Workflow file for this run
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: generate-spec | |
on: pull_request | |
jobs: | |
build_documents: | |
name: build momentum netCDF document from source | |
runs-on: ubuntu-latest | |
steps: | |
# Check out PR | |
- uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: | | |
sudo apt update | |
sudo apt -yq install asciidoctor ruby-asciidoctor-pdf ruby-asciidoctor-plantuml | |
- name: build content | |
run: | | |
export apath=./specifications/momentum | |
export ADOC=$apath/Momentum-netCDF.adoc | |
asciidoctor --basedir=$apath $ADOC | |
asciidoctor-pdf --basedir=$apath $ADOC | |
cp $ADOC.pdf $apath/publish | |
cp $ADOC.html $apath/publish | |
ls -l $apath/publish | |
# Upload artifact containing Momentum-netCDF | |
- name: Upload cf-conventions doc preview | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Momentum-netCDF | |
path: ./specifications/momentum/publish/Momentum-netCDF.* |