Skip to content

Commit

Permalink
Merge pull request #52 from babakks/update-readme
Browse files Browse the repository at this point in the history
➕ Add releases
  • Loading branch information
babakks committed Aug 29, 2023
2 parents 3133956 + 1ace286 commit 0662e5c
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 5 deletions.
16 changes: 14 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
bump-build-no:
echo -n "$$(( 1+$$(cut -f1 -d" " version.dat || echo "-1") )) ($$(date -u +%y-%m-%d))" > version.dat

tag:
git tag --annotate "v$$(cat version.dat | cut -f1 -d' ')" -m "$$(cat version.dat)"
release:
git tag --annotate "$(call get_tag_name)" -m "$$(cat version.dat)" \
&& git push --tags \
&& gh release create \
-F version.dat \
--title "$(call get_tag_name)" \
"$(call get_tag_name)" \
resume.pdf sop.pdf

check-pretty:
latexindent -l resume.tex > resume.pretty.tex \
Expand All @@ -29,6 +35,10 @@ pretty-docker:
clean:
rm -f *.bak* *.aux *.log *.out *.ent *.fls *.fdb_latexmk *.synctex.gz *.pretty.tex

build: build-resume build-sop

build-docker: build-resume-docker build-sop-docker

build-resume:
lualatex -interaction=nonstopmode resume.tex \
&& lualatex -interaction=nonstopmode resume.tex
Expand All @@ -51,4 +61,6 @@ define run_in_docker
bash -c 'cd /app && $(1)'
endef

get_tag_name = $$(echo v$$(cat version.dat | cut -f1 -d' '))

texlive_image = 'texlive/texlive@sha256:4e514fb5596a8db3defd38f40fc0f7b119eb3fcc88a4bfe291cd36eb00551ddb'
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

[![Build (main)](https://github.com/babakks/my-resume/actions/workflows/main.yml/badge.svg)](https://github.com/babakks/my-resume/actions/workflows/main.yml)

Welcome! You can find the PDF version of my resume within the latest [artifacts][workflows/main].
Welcome! You can find the PDF version of my resume within the [releases][releases].

[workflows/main]: https://github.com/babakks/my-resume/actions/workflows/main.yml
[releases]: https://github.com/babakks/my-resume/releases

Feel free to make a copy for your own use. 🍏
2 changes: 1 addition & 1 deletion version.dat
Original file line number Diff line number Diff line change
@@ -1 +1 @@
49 (23-08-29)
50 (23-08-29)

0 comments on commit 0662e5c

Please sign in to comment.