Render paper #7
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
--- | |
name: Render the paper | |
run-name: Render paper | |
on: | |
push: | |
paths: | |
- "**/paper.tex" | |
workflow_dispatch: | |
jobs: | |
render: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: install nix | |
uses: cachix/install-nix-action@v22 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: build | |
run: "nix-build --arg sha \\\"${{ github.sha }}\\\" paper --out-link paper-out" | |
- name: copy artefact | |
run: "cp paper-out/*.pdf ." # GitHub fails to handle symlinks | |
- name: upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: hauser-hausch-research-paper-${{ github.sha }}.pdf | |
path: hauser-hausch-research-paper-${{ github.sha }}.pdf |