Skip to content

Add release step to compile workflow #24

Add release step to compile workflow

Add release step to compile workflow #24

Workflow file for this run

name: Lint LaTeX document
on: [push]
jobs:
lint_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v2
- name: Lint LaTeX document
uses: ChiefGokhlayeh/textidote-action@v5
id: lint
with:
root_file: main.tex
## Implied defaults:
# working_directory:
# report_type: html
# report_file: report.html
## Use this setting to pass custom arguments options to
## TeXtidote (such as what grammar checker to use).
args: --check en --dict en_US.dict
- name: Upload TeXtidote report
uses: actions/upload-artifact@v2
with:
name: textidote_report
path: report.html
- name: Throw error if linter warnings exist
if: ${{ steps.lint.outputs.num_warnings != 0 }}
run: 'echo "::error file=main.tex::num_warnings: ${{ steps.lint.outputs.num_warnings }}"; exit 1;'