-
Notifications
You must be signed in to change notification settings - Fork 7
53 lines (46 loc) · 1.27 KB
/
build.yml
File metadata and controls
53 lines (46 loc) · 1.27 KB
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
51
52
53
name: Build Documents
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
uses: dante-ev/latex-action@latest
with:
entrypoint: ./docker.sh
- name: Upload
uses: actions/upload-artifact@v3
with:
name: pdfs
path: '*.pdf'
- name: Release
uses: ncipollo/release-action@v1
if: ${{ github.ref == 'refs/heads/master' }}
with:
artifacts: "cv.pdf,resume.pdf"
artifactContentType: 'application/pdf'
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
commit: 'master'
tag: 'v${{ github.run_number }}'
- name: Move files
if: ${{ github.ref == 'refs/heads/master' }}
run: |
mkdir ./public
mv ./*.pdf ./public/
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
publish_branch: gh-pages
enable_jekyll: false