-
Notifications
You must be signed in to change notification settings - Fork 287
50 lines (47 loc) · 1.17 KB
/
CI.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
name: Build and Deploy
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install and Build
run: |
npm install
npm run build
- name: Deploy
uses: JamesIves/[email protected]
if: github.ref == 'refs/heads/main'
with:
branch: gh-pages
folder: docs/.vuepress/dist
latex-build:
name: "PDF Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- run: pip install mistune
- uses: wtfjoke/setup-tectonic@v3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: 'gen tex files'
run: python latex/convert2latex.py
- name: Run Tectonic
run: tectonic --keep-logs latex/APoSD-zh.tex
- name: Upload PDF
uses: actions/upload-artifact@v4
with:
name: pdf
if-no-files-found: error
path: |
latex/APoSD-zh.pdf
latex/APoSD-zh.log