Skip to content

Compile LaTeX and Create Release #34

Compile LaTeX and Create Release

Compile LaTeX and Create Release #34

Workflow file for this run

name: Compile LaTeX and Create Release
on:
push:
tags:
- 'v*' # Trigger the workflow on push of tags like v1.0.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install LaTeX
run: |
sudo apt-get update
sudo apt-get install texlive-full
- name: Compile LaTeX document
run: |
xelatex OmniView.tex
makeglossaries OmniView
xelatex OmniView.tex
- name: Upload PDF as Artifact
uses: actions/upload-artifact@v2
with:
name: Compiled-PDF
path: OmniView.pdf
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: OmniView.pdf
draft: false
prerelease: false
token: ${{ secrets.GITHUB_TOKEN }}