Skip to content

Commit

Permalink
Better tagging with semver
Browse files Browse the repository at this point in the history
  • Loading branch information
simonszu committed Aug 16, 2023
1 parent ee4ef19 commit 0f59fcf
Showing 1 changed file with 8 additions and 32 deletions.
40 changes: 8 additions & 32 deletions .github/workflows/build-cv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,43 +15,19 @@ jobs:

# https://github.com/actions/cache#creating-a-cache-key
# http://man7.org/linux/man-pages/man1/date.1.html
- name: Get Date
id: get-date
run: |
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
echo "::set-output name=iso::$(/bin/date -u "+%Y-%m-%d")"
echo "::set-output name=time::$(/bin/date -u "+%T")"
shell: bash

- name: Cache
uses: actions/cache@v3
with:
# A list of files, directories, and wildcard patterns to cache and restore
path: |
*.aux
*.lof
*.lot
*.fls
*.out
*.toc
*.fmt
*.fot
*.cb
*.cb2
.*.lb
*.bbl
*.bcf
*.blg
*-blx.aux
*-blx.bib
*.run.xml
key: ${{ runner.os }}-${{ steps.get-date.outputs.date }}

- 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:
Expand All @@ -72,7 +48,7 @@ jobs:
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ steps.get-date.outputs.iso }}-${{ steps.get-date.outputs.time }}
tag_name: ${{ steps.tag_version.outputs.new_tag }}
files: |
CV/cv_german.pdf
CV/cv_english.pdf

0 comments on commit 0f59fcf

Please sign in to comment.