@@ -0,0 +1,51 @@
|
||||
name: Build Jekyll site
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ["main"]
|
||||
workflow_dispatch:
|
||||
|
||||
concurrency:
|
||||
group: pages
|
||||
cancel-in-progress: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ruby:3.1
|
||||
env:
|
||||
JEKYLL_ENV: production
|
||||
steps:
|
||||
- name: Install Node and LaTeX
|
||||
run: |
|
||||
apt-get update
|
||||
apt-get install -y --no-install-recommends \
|
||||
nodejs latexmk texlive-latex-recommended texlive-latex-extra \
|
||||
texlive-fonts-recommended texlive-fonts-extra texlive-xetex
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Build CV PDF from LaTeX
|
||||
working-directory: cv
|
||||
run: latexmk -pdf -interaction=nonstopmode WJ-CV.tex
|
||||
|
||||
- name: Install gems
|
||||
run: bundle install --jobs 4
|
||||
|
||||
- name: Build with Jekyll
|
||||
run: bundle exec jekyll build
|
||||
|
||||
- name: Upload site artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: site
|
||||
path: _site
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy
|
||||
run: echo "TODO"
|
||||
Reference in New Issue
Block a user