Skip to content

Commit

Permalink
[MISC] sanitise all build & make files
Browse files Browse the repository at this point in the history
  • Loading branch information
istvnurbn committed Sep 16, 2024
1 parent 26947ab commit b91ad93
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/manual_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: ✨ Build CV
uses: xu-cheng/latex-action@v3
Expand All @@ -27,15 +30,9 @@ jobs:
continue_on_error: true
texlive_version: 2022
pre_compile: mkdir -p compiled
post_compile: |
rm -rf compiled/*.aux
rm -rf compiled/*.log
rm -rf compiled/*.fdb_latexmk
rm -rf compiled/*.fls
rm -rf compiled/*.xdv

- name: 🚀 Deploy
uses: actions/upload-artifact@v4
with:
name: CV
path: compiled/*
path: compiled/*.pdf
10 changes: 4 additions & 6 deletions .github/workflows/web_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true

- name: ✨ Compile CV
uses: xu-cheng/latex-action@v3
Expand All @@ -28,12 +31,7 @@ jobs:
continue_on_error: true
texlive_version: 2022
pre_compile: mkdir -p compiled
post_compile: |
rm -rf compiled/*.aux
rm -rf compiled/*.log
rm -rf compiled/*.fdb_latexmk
rm -rf compiled/*.fls
rm -rf compiled/*.xdv
post_compile: find compiled -type f ! -iname "*.pdf" -delete

- name: 🌍 Push to istvanurban.me
uses: cpina/github-action-push-to-another-repository@main
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ create_dir:
documents:

for doc in $(DOCUMENTS); do $(CC) -output-directory=$(COMPILED_DIR) $$doc; done
rm -rf $(COMPILED_DIR)/*.aux
rm -rf $(COMPILED_DIR)/*.log
find $(COMPILED_DIR) -type f ! -iname "*.pdf" -delete

clean:

Expand Down

0 comments on commit b91ad93

Please sign in to comment.