Skip to content

Better tagging with semver #28

Better tagging with semver

Better tagging with semver #28

Workflow file for this run

---
name: Create and publish the CV
on:
push:
# paths:
# - CV
# tags:
# - 'v*.*.*'
jobs:
build_latex:
runs-on: ubuntu-latest
steps:
# https://github.com/actions/cache#creating-a-cache-key
# http://man7.org/linux/man-pages/man1/date.1.html
- name: Set up Git repository
uses: actions/checkout@v3
with:
lfs: true
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: major
- name: Compile LaTeX document for german CV
uses: xu-cheng/latex-action@v2
with:
root_file: cv_german.tex
working_directory: "CV"
env:
TEXINPUTS: ".:./CV//:"
- name: Compile LaTeX document for english CV
uses: xu-cheng/latex-action@v2
with:
root_file: cv_english.tex
working_directory: "CV"
env:
TEXINPUTS: ".:./CV//:"
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.tag_version.outputs.new_tag }}
files: |
CV/cv_german.pdf
CV/cv_english.pdf