Skip to content

github action for asciidoc build and artifact share #1

github action for asciidoc build and artifact share

github action for asciidoc build and artifact share #1

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: |

Check failure on line 17 in .github/workflows/buildMomentumSpec.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/buildMomentumSpec.yml

Invalid workflow file

You have an error in your yaml syntax on line 17
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.*