Skip to content

Commit

Permalink
build tex pdf and upload artifact to PR
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-marqh committed Oct 16, 2023
1 parent d7efd77 commit 7cc4d06
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
17 changes: 12 additions & 5 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 texlive texlive-latex-extra inkscape texlive-bibtex
- name: build content
run: |
date > thisdate
export apath=./specifications/momentum
export SRC=$apath/Momentum-netCDF
export TEX=$SRC.tex
TEXINPUTS=$apath/: pdflatex -shell-escape -halt-on-error -interaction=nonstopmode -output-directory=$apath/publish $TEX
TEXINPUTS=$apath/: bibtex $SRC
TEXINPUTS=$apath/: pdflatex -output-directory=$apath -shell-escape $TEX
TEXINPUTS=$apath/: pdflatex -output-directory=$apath -shell-escape $TEX
# Upload artifact containing Momentum-netCDF.pdf
- name: Upload cf-conventions doc preview
uses: actions/upload-artifact@v2
with:
name: thisdate
path: ./
name: Momentum-netCDF.pdf
path: ./specifications/momentum/publish
File renamed without changes.
1 change: 1 addition & 0 deletions specifications/momentum/publish/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
directory for published built content

0 comments on commit 7cc4d06

Please sign in to comment.