-
Notifications
You must be signed in to change notification settings - Fork 21
34 lines (33 loc) · 958 Bytes
/
workflow.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
name: Build LaTeX document
on: [push]
permissions:
contents: write
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
# - name: Create tag
# id: create_tag
# run: |
# tag_name="v1.0.${{ github.run_number }}"
# git tag $tag_name
# git push origin $tag_name
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v3
with:
working_directory: src
root_file: all.tex
latexmk_shell_escape: true
- name: Release
uses: softprops/[email protected]
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: "v1.0.${{ github.run_number }}"
make_latest: true
generate_release_notes: true
preserve_order: true
files: src/all.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}