Skip to content

Commit

Permalink
github action for asciidoc build and artifact share
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-marqh committed Oct 16, 2023
1 parent ad52a70 commit f31a433
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/buildMomentumSpec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,20 @@ jobs:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
echo 'sudo apt install'
- name: build content #toy content
sudo apt update
sudo apt -yq install asciidoctor ruby-asciidoctor-pdf ruby-asciidoctor-plantuml
- name: build content
run: |
date > thisdate
# Upload artifact containing Momentum-netCDF.pdf
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: thisdate
path: ./
name: Momentum-netCDF
path: ./specifications/momentum/publish/Momentum-netCDF.*

0 comments on commit f31a433

Please sign in to comment.