Skip to content

v5.8.2

v5.8.2 #163

name: Build and deploy
on: [push, release, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Generate urls
if: startsWith(github.ref, 'refs/tags/')
run: make urls
- name: Build CVs
uses: xu-cheng/texlive-action/full@v1
with:
run: |
apk add make
make
- uses: actions/upload-artifact@v4
with:
name: cv
path: dist/
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
dist/*.pdf
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Re-deploy website
if: startsWith(github.ref, 'refs/tags/')
run: |
curl -XPOST -H "Authorization: token ${{secrets.PAT_TOKEN}}" -H "Accept: application/vnd.github.v3+json" -H "Content-Type: application/json" https://api.github.com/repos/jspc/jspc.github.io/dispatches --data '{"event_type": "deploy_for_cv"}'