Gravwell v5.6.2 #8
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: Upload PDF to Release | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
training-pdf-builder: | |
runs-on: ubuntu-latest | |
name: Build the training PDF and upload to Release | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v4 | |
- name: Setup Nix | |
uses: cachix/install-nix-action@v25 | |
with: | |
nix_path: nixpkgs=channel:nixos-unstable | |
- name: Build PDF | |
run: | | |
nix-build | |
- name: Update PDF name | |
run: | | |
cp result/master.pdf gravwell_training_${{ github.ref_name }}.pdf | |
- name: Publish | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
gh release upload ${{ github.ref_name }} gravwell_training_${{ github.ref_name }}.pdf --clobber |