Skip to content

Commit

Permalink
Merge pull request #8 from hrjakobsen/main
Browse files Browse the repository at this point in the history
CI: Add automatic compilation of booklet
  • Loading branch information
hrjakobsen authored Oct 5, 2021
2 parents 54942a6 + 8c5fd82 commit fe5346e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: LaTeX build

on:
push:
tags:
- "*"
branches: [ main ]
pull_request:
branches: [ main ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
container:
image: texlive/texlive:latest
steps:
- name: Install prerequisites
run: apt-get update && apt-get install -y ghostscript
- name: Checkout repository
uses: actions/checkout@v2
- name: Compile the document
run: |
latex main.tex
makeindex main
latex main.tex
dvips main.dvi
sh ./ps2book.sh main.ps
ps2pdf main_book.ps sangbog.pdf
- name: Upload document
uses: actions/upload-artifact@v2
with:
name: Sangbog
path: sangbog.pdf
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: sangbog.pdf

0 comments on commit fe5346e

Please sign in to comment.