Skip to content

Merge branch 'main' into drafting #22

Merge branch 'main' into drafting

Merge branch 'main' into drafting #22

Workflow file for this run

name: Create PDF
on:
push:
branches: [ main, drafting ]
pull_request:
branches: [ drafting ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Build
uses: xu-cheng/latex-action@v3
with:
root_file: cv.tex
working_directory: cv
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: cv
path: cv/cv.pdf
compression-level: 0 # don't compress PDF
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
needs: build
if: github.ref == 'refs/heads/main'
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: cv
path: cv/cv.pdf
- name: Tag
id: generate_release_tag
uses: amitsingh-007/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag_prefix: 'v'
tag_template: 'yyyy.mm.dd.i'
- name: Release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.generate_release_tag.outputs.next_release_tag }}
artifacts: "cv/cv.pdf"
generateReleaseNotes: true