forked from RyanFitzgerald/devportfolio
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (49 loc) · 1.57 KB
/
build-and-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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Build and deploy
on: [push]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Set up Git repository
uses: actions/checkout@v4
- name: Install dependencies
run: npm install
- name: Generate localized LaTeX templates
run: npm run generate-latex
- name: Upload generated LaTeX templates
uses: actions/upload-artifact@v4
with:
name: latex-templates
path: cv/cv_hendrik_schmitz_*.tex
- name: Compile LaTeX documents
uses: xu-cheng/latex-action@v3
with:
root_file: cv/cv_hendrik_schmitz_*.tex
continue_on_error: "true"
env:
TEXINPUTS: ".:./cv//:"
- name: Upload generated PDF files
uses: actions/upload-artifact@v4
with:
name: cvs
path: cv_hendrik_schmitz_*.pdf
- name: Copy generated pdf files to public directory
run: |
mkdir -p public
cp -R *.pdf public/
- name: Build Next.js app
run: npm run build
- name: Deploy to Netlify
uses: nwtgck/[email protected]
with:
publish-dir: './out'
production-branch: master
github-token: ${{ secrets.GITHUB_TOKEN }}
deploy-message: "Deploy from GitHub Actions"
enable-pull-request-comment: true
enable-commit-comment: true
overwrites-pull-request-comment: true
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
timeout-minutes: 1