-
Notifications
You must be signed in to change notification settings - Fork 8
49 lines (44 loc) · 1.05 KB
/
ci.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
name: CI
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
jobs:
compile:
name: Compile
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Compile document
uses: xu-cheng/latex-action@v3
with:
root_file: main.tex
- name: Rename document
run: mkdir dist && mv main.pdf dist/buku-ta.pdf
- name: Upload Pages artifact
uses: actions/[email protected]
with:
path: dist
deploy:
name: Deploy
if: github.event_name != 'pull_request'
needs: compile
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: false
steps:
- name: Configure Pages
uses: actions/[email protected]
- name: Deploy to Pages
id: deployment
uses: actions/[email protected]