Skip to content

Add source code urls for every project #24

Add source code urls for every project

Add source code urls for every project #24

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