Merge pull request #247 from ArnauPrat/master #419
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
on: [push] | |
jobs: | |
compile_exercises_job: | |
runs-on: ubuntu-latest | |
name: Compile specification | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Prepare template | |
run: | | |
sed -i "s/-SNAPSHOT/-SNAPSHOT, commit `git rev-parse --short HEAD`/" ldbc.cls | |
- name: Build PDFs with the LaTeX engine in Docker | |
uses: ldbc/document-builder@main | |
with: | |
makefile-arguments: texfot query_cards workloads | |
- name: Create package | |
run: | | |
mkdir out/ | |
cp *.pdf out/ | |
cp standalone-query-cards/*.pdf out/ | |
cp figures/schema-comfortable.pdf out/schema.pdf | |
cp figures/schema-comfortable.png out/schema.png | |
cp figures/example-graph-with-updates.pdf out/example-graph-with-updates.pdf | |
cp figures/example-graph-without-updates.pdf out/example-graph-without-updates.pdf | |
cp deployment/readme-to-deploy.md out/README.md | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: out | |
single-commit: true | |
if: github.event_name == 'push' && github.ref == 'refs/heads/main' |