Skip to content

Merge pull request #42 from cp-sapienza/string_periods #127

Merge pull request #42 from cp-sapienza/string_periods

Merge pull request #42 from cp-sapienza/string_periods #127

Workflow file for this run

name: Build LaTeX document
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Generate release tag
id: tag
run: |
echo "::set-output name=release_tag::AutoBuild_$(date +"%Y.%m.%d_%H-%M")"
- name: Set up Git repository
uses: actions/checkout@v2
- name: pdflatex main
uses: dante-ev/latex-action@latest
with:
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape
- name: pdflatex main
uses: dante-ev/latex-action@latest
with:
root_file: main.tex
compiler: pdflatex
args: -interaction=nonstopmode -shell-escape
- name: Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag.outputs.release_tag }}
files: main.pdf
- name: Remove old nightlies
uses: dev-drprasad/delete-older-releases@v0.2.0
with:
keep_latest: 1
delete_tag_pattern: AutoBuild
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}