Skip to content

next version 2

next version 2 #27

Workflow file for this run

name: Build PDF
on:
push:
branches:
- main
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
# permissions:
# contents: read
# pages: write
# id-token: write
# contents: write
# # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
# concurrency:
# group: "pages"
# cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/moderncv/debian-texlive-docker:main
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Setup Pages
# id: pages
# uses: actions/configure-pages@v5
- name: Build PDF
run: latexmk -pdf -cd ./src/maxbothe-cv.tex
# - name: Copy PDF
# run: |
# mkdir dist
# cp ./src/maxbothe-cv.pdf ./dist/maxbothe-cv.pdf
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
name: maxbothe-cv
path: ./src/maxbothe-cv.pdf
deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: maxbothe-cv
- name: list dir
run: ls -R
- name: Publish PDF
uses: s0/git-publish-subdir-action@develop
env:
REPO: self
BRANCH: gh-pages
FOLDER: .
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SQUASH_HISTORY: true
SKIP_EMPTY_COMMITS: true