Merge pull request #72 from MeierTobias/appendix/integrals #37
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
name: Build and deploy LaTex summary to GitHub-Pages | |
on: | |
push: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. | |
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build_deploy_latex: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: build latex pdf (portrait/with examples) | |
uses: docker://texlive/texlive:latest | |
with: | |
args: latexmk -pdf -cd -interaction=nonstopmode -file-line-error -jobname=analysis_III_full_portrait -outdir=../build ./src/main.tex | |
- name: change flags | |
run: sed '0,/{1}/s//{0}/' -i src/headers/flags.tex ; | |
- name: build latex pdf (landscape/with examples) | |
uses: docker://texlive/texlive:latest | |
with: | |
args: latexmk -pdf -cd -interaction=nonstopmode -file-line-error -jobname=analysis_III_full_landscape -outdir=../build ./src/main.tex | |
- name: change flags | |
run: sed '0,/{1}/s//{0}/' -i src/headers/flags.tex ; | |
- name: build latex pdf (landscape/without examples) | |
uses: docker://texlive/texlive:latest | |
with: | |
args: latexmk -pdf -cd -interaction=nonstopmode -file-line-error -jobname=analysis_III_landscape -outdir=../build ./src/main.tex | |
- name: change flags | |
run: sed '0,/{0}/s//{1}/' -i src/headers/flags.tex ; | |
- name: build latex pdf (portrait/without examples) | |
uses: docker://texlive/texlive:latest | |
with: | |
args: latexmk -pdf -cd -interaction=nonstopmode -file-line-error -jobname=analysis_III_portrait -outdir=../build ./src/main.tex | |
- name: change flags | |
run: sed '0,/{0}/s//{1}/' -i src/headers/flags.tex ; | |
- name: Copy output | |
run: | | |
cp ./build/analysis_III_full_portrait.pdf ./pages/analysis_III_full_portrait.pdf | |
cp ./build/analysis_III_full_landscape.pdf ./pages/analysis_III_full_landscape.pdf | |
cp ./build/analysis_III_portrait.pdf ./pages/analysis_III_portrait.pdf | |
cp ./build/analysis_III_landscape.pdf ./pages/analysis_III_landscape.pdf | |
- name: Setup Pages | |
uses: actions/configure-pages@v3 | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v2 | |
with: | |
path: './pages' | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v2 |