Skip to content

Commit 8e46d2d

Browse files
committed
add ci
1 parent 60eea56 commit 8e46d2d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/ci.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Build and release userguide
2+
on: [push]
3+
jobs:
4+
latex:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: checkout repo
8+
uses: actions/checkout@v2
9+
- name: build latex document
10+
uses: xu-cheng/latex-action@v2
11+
with:
12+
root_file: main.tex
13+
- name: release generated pdf
14+
uses: svenstaro/upload-release-action@v2
15+
if: github.ref == 'refs/heads/master'
16+
with:
17+
repo_token: ${{ secrets.GITHUB_TOKEN }}
18+
file: main.pdf
19+
asset_name: userguide
20+
tag: ${{ github.ref }}
21+
overwrite: true

0 commit comments

Comments
 (0)