-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.38 KB
/
latex.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: build
on:
push:
branches:
- main
workflow_dispatch:
jobs:
build_latex:
name: "Build 📦️"
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Compile english resume
uses: xu-cheng/latex-action@v3
with:
root_file: damien-plenard.en.tex
latexmk_use_xelatex: true
- name: Upload artifact
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4
with:
name: resume
path: damien-plenard.*.pdf
if-no-files-found: error
deploy_pages:
name: "Deploy 🚀"
needs: build_latex
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- name: Download artifact
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
with:
name: resume
path: resume
- name: Upload artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
with:
path: resume
- name: Deploy 🚀
if: success()
id: deployment
uses: actions/deploy-pages@main