Skip to content

Commit

Permalink
add action for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
louisradtke committed Jan 26, 2025
1 parent 0813326 commit c49a099
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/actions-tex.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Publish CV Doc

on:
push:
branches:
- main

jobs:
build:
name: Build PDF
runs-on: ubuntu-latest
container:
image: registry.gitlab.com/islandoftex/images/texlive:latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Build PDF with latexmk
run: |
latexmk -pdf main.tex
- name: Upload PDF artifact
uses: actions/upload-artifact@v3
with:
name: main-pdf
path: ./main.pdf

deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
needs: build

steps:
- name: Download PDF artifact
uses: actions/download-artifact@v3
with:
name: main-pdf
path: ./

- name: Deploy main.pdf to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./
publish_branch: gh-pages

0 comments on commit c49a099

Please sign in to comment.