-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 835 Bytes
/
compile.yaml
File metadata and controls
34 lines (34 loc) · 835 Bytes
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
name: LaTeX Build
'on':
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
container:
image: platinshadow/latex:1.0.2
steps:
- name: Checkout git repository
uses: actions/checkout@v4
with:
lfs: true
submodules: true
fetch-depth: 0
- name: Build LaTeX
run: make pdf
- name: Commit
run: |
git config --global --add safe.directory /__w/gdpi/gdpi
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git add -f "out/*.pdf"
git commit -m "Compile LaTeX"
- name: Push changes
uses: ad-m/github-push-action@master
with:
branch: build
github_token: ${{ secrets.GITHUB_TOKEN }}
force: true