-
Notifications
You must be signed in to change notification settings - Fork 26
52 lines (44 loc) · 1.12 KB
/
build.yaml
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
#
# Build the cv
#
name: Build
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Tectonic Cache
uses: actions/cache@v4
with:
path: ~/.cache/Tectonic
key: ${{ runner.os }}-tectonic-${{ hashFiles('**/*.tex') }}
restore-keys: |
${{ runner.os }}-tectonic-
- name: Setup tectonic
uses: wtfjoke/setup-tectonic@v3
with:
github-token: ${{ github.token }}
- name: Build CV
run: make
- name: Prepare files for gh-pages
run: |
mkdir public
mv cn/cv.pdf public/DTian_cv_cn.pdf
mv en/cv.pdf public/DTian_cv_en.pdf
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.event_name == 'push'
with:
github_token: ${{ github.token }}
publish_dir: ./public
force_orphan: true