Skip to content

Bump peaceiris/actions-gh-pages from 3 to 4 #153

Bump peaceiris/actions-gh-pages from 3 to 4

Bump peaceiris/actions-gh-pages from 3 to 4 #153

Workflow file for this run

#
# Build the cv
#
name: Build
on:
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
build:
runs-on: ubuntu-latest
name: Build
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install TinyTeX
run: |
make install_tex
echo "${HOME}/bin" >> $GITHUB_PATH
- name: Install LaTeX packages
run: |
tlmgr update --self
make install_packages
- name: Build CV
run: make
- name: Prepare files for gh-pages
run: |
mkdir public
mv cn/cv.pdf public/DTian_cv_cn.pdf
mv en/cv.pdf public/DTian_cv_en.pdf
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.event_name == 'push'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public
force_orphan: true