2022-07-21 13:00:02 +02:00
|
|
|
name: "Build the Master's Thesis as PDF"
|
2022-07-21 09:56:58 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
build_latex:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Set up Git repository
|
|
|
|
uses: actions/checkout@v2
|
2022-07-21 10:19:39 +02:00
|
|
|
|
2022-08-22 15:15:17 +02:00
|
|
|
- uses: cachix/install-nix-action@v15
|
2022-08-22 15:17:34 +02:00
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
2022-08-22 15:15:17 +02:00
|
|
|
|
|
|
|
- run: nix build
|
2022-08-22 15:36:06 +02:00
|
|
|
- run: cp result/index.pdf .
|
|
|
|
|
2022-08-22 15:24:33 +02:00
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: pdf
|
2022-08-22 15:36:06 +02:00
|
|
|
path: index.pdf
|
2022-08-22 15:28:07 +02:00
|
|
|
|
|
|
|
- uses: "marvinpinto/action-automatic-releases@latest"
|
|
|
|
with:
|
|
|
|
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
|
|
|
automatic_release_tag: "latest"
|
|
|
|
prerelease: true
|
|
|
|
title: "WiP Build"
|
|
|
|
files: |
|
|
|
|
result/index.pdf
|