Skip to content

Commit 206e6f8

Browse files
committed
feat: gha
1 parent 1b431f3 commit 206e6f8

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/publ.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Publish Articles
2+
3+
on:
4+
push:
5+
tags:
6+
- "article"
7+
8+
jobs:
9+
build_latex:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repository
14+
uses: actions/checkout@v4
15+
16+
- name: Setup TeXLive
17+
uses: xu-cheng/texlive-action@v2
18+
with:
19+
scheme: small
20+
run: |
21+
tlmgr install \
22+
collection-luatex \
23+
evangelion-jfm \
24+
float \
25+
xurl \
26+
listings \
27+
graphicx \
28+
lua-ul \
29+
fontspec \
30+
microtype \
31+
ragged2e \
32+
hyperref \
33+
luatexja
34+
python3 make.py post
35+
python3 make.py batch
36+
37+
- name: Commit and Push Changes
38+
run: |
39+
git config user.name "github-actions[bot]"
40+
git config user.email "github-actions[bot]@users.noreply.github.com"
41+
git add .
42+
git commit -m "chore: automated publish" || echo "no changes to commit"
43+
git push

0 commit comments

Comments
 (0)