generated from jgsu-acm/contest-template
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1.07 KB
/
build.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
name: CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Build problem.tex
uses: xu-cheng/latex-action@v2
with:
root_file: problem.tex
working_directory: problem
latexmk_use_xelatex: true
args: -jobname=${{ github.event.repository.name }}-problem
- name: Build solution.tex
uses: xu-cheng/latex-action@v2
with:
root_file: solution.tex
working_directory: solution
latexmk_use_xelatex: true
args: -jobname=${{ github.event.repository.name }}-solution
- name: Release Package
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: latest
prerelease: false
files: |
problem/${{ github.event.repository.name }}-problem.pdf
solution/${{ github.event.repository.name }}-solution.pdf