update #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |