-
Notifications
You must be signed in to change notification settings - Fork 61
53 lines (47 loc) · 1.36 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Release
on:
push:
tags:
- '*'
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: LaTeX linter (chktex)
uses: j2kun/[email protected]
# Provide this output for context, but don't fail builds
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
build:
needs: [lint]
runs-on: ubuntu-latest
container: texlive/texlive:TL2022-historic
steps:
- uses: actions/checkout@v4
- name: Take ownership of the checkout directory (Git CVE-2022-24765)
run: chown --recursive --reference=/ .
- name: Allow for file ownership conflicts with Docker and GitHub Actions
run: git config --global --add safe.directory '*'
- name: LaTeX compilation Organization
run:
TERM=xterm make organization
- name: LaTeX compilation Rulebook
run:
TERM=xterm make rulebook
- name: LaTeX compilation Score sheets
run:
TERM=xterm make scoresheets
- name: Create Release
id: create-release
uses: softprops/action-gh-release@v2
with:
draft: false
prerelease: false
generate_release_notes: false
token: ${{ secrets.GITHUB_TOKEN }}
files: |
.build/organization.pdf
.build/rulebook.pdf
.build/scoresheets.pdf