-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.06 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: Release
# Controls when the workflow will run
on:
push:
paths:
- "**.tex"
- "**.ttf"
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: LaTeX compilation
uses: dante-ev/latex-action@2023-A
with:
# The root LaTeX file to be compiled
root_file: cv.tex
# LaTeX engine to be used
compiler: xelatex
- uses: actions/upload-artifact@v3
with:
name: cv
path: cv.pdf
release:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
needs: build
steps:
- uses: actions/download-artifact@v3
with:
name: cv
- name: Rename
run: mv cv.pdf cv-$GITHUB_REF_NAME.pdf
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
cv-$GITHUB_REF_NAME.pdf