Skip to content

Commit

Permalink
Add GitHub action to publish PDF as release artifact (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmiller authored May 23, 2020
1 parent 4f3b9ae commit 48451f8
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 4 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/xelatex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: xelatex

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:
runs-on: ubuntu-latest
# https://stackoverflow.com/a/58521709
# https://github.com/vipintm/docker-xelatex
container: vipintm/xelatex
steps:
- uses: actions/checkout@v2
- name: xelatex
run: make

# https://github.com/marketplace/actions/upload-files-to-a-github-release
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: algebraic-groups.pdf
asset_name: algebraic-groups.pdf
tag: ${{ github.ref }}
overwrite: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
*.brf
*.log
*.out
*.pdf
*.run.xml
*.synctex.gz
*.synctex.gz(busy)
Expand Down
2 changes: 1 addition & 1 deletion 1_introduction.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ \section{Introduction}


The latest version of these notes can be found online at
\url{http://www.math.cornell.edu/~dkmiller/bin/6490.pdf}.
\url{https://github.com/dkmiller/algebraic-groups/releases/download/master/algebraic-groups.pdf}.
Comments and corrections are appreciated.


Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
all:
xelatex algebraic-groups.tex
xelatex algebraic-groups.tex
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
Linear algebraic groups and their Lie algebras
====
# Linear algebraic groups and their Lie algebras

Notes from the course MATH 6490, taught at Cornell University by David Zywina.
![xelatex](https://github.com/dkmiller/algebraic-groups/workflows/xelatex/badge.svg)

Notes from the course MATH 6490, taught at Cornell University by
[David Zywina](mailto:[email protected]).

To create the PDF locally on windows, run the following command in PowerShell.
Assumes you have
[Docker for Windows](https://docs.docker.com/docker-for-windows/)
installed.

```powershell
docker run --volume ${PWD}:/src --workdir /src vipintm/xelatex make
```
Binary file removed algebraic-groups.pdf
Binary file not shown.

0 comments on commit 48451f8

Please sign in to comment.