Setting up GitHub workflows #2
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
# This file generated from a template file maintained in the ivoatex repository. | |
# To create and install it into a project repository, do: | |
# make github-preview | |
# git commit | |
# git push | |
# | |
name: Check the IVOA document | |
env: | |
doc_name: CloudTechnologies | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v1 | |
with: | |
submodules: true | |
- name: Setup dependencies | |
run: | | |
sudo apt update | |
sudo apt install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended xsltproc latexmk cm-super | |
- name: Build the document | |
run: make | |
- name: Check the output | |
run: | | |
test -f ${{ env.doc_name }}.pdf | |
test -f ${{ env.doc_name }}.bbl | |
- name: Keep the PDF artefact | |
uses: actions/upload-artifact@v1 | |
with: | |
name: PDF Preview | |
path: ${{ env.doc_name }}.pdf |