Skip to content

Commit

Permalink
Setup github action to build notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Leixb committed Jan 8, 2023
1 parent d474025 commit b0f30d5
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: "build document"
on:
push:
tags:
- '*'

jobs:
build_document:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.2.0
- uses: cachix/install-nix-action@v17
with:
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v12
with:
name: leixb-upc-projects
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
extraPullNames: nix-community
- run: nix build -L
- name: Release
uses: softprops/action-gh-release@v0.1.15
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
result/*
2 changes: 1 addition & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
src = ./.;
shellEscape = true;
minted = true;
name = "document.pdf";
name = "AML-lecture-notes.pdf";
};

defaultPackage = packages.document;
Expand Down

0 comments on commit b0f30d5

Please sign in to comment.