-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (28 loc) · 988 Bytes
/
deploy.yml
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
name: Build and Deploy
on:
push:
branches:
- master
jobs:
build-and-deploy:
if: "!contains(github.event.head_commit.message, 'skip ci')"
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/[email protected]
with:
persist-credentials: false
- name: Compile LaTeX document 🔧 # Build cv.pdf
uses: xu-cheng/latex-action@v2
with:
root_file: cv.tex
latexmk_use_xelatex: true
- name: Build directory 🔧 # Prepare build directory with its contents
run: make deploy
- name: Deploy 🚀 # Deploy to pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: build # The folder the action should deploy.
CLEAN: true # Automatically remove deleted files from the deploy branch