Skip to content

Commit

Permalink
Merge pull request #1 from Shruti-S0405/shruti
Browse files Browse the repository at this point in the history
ci: Updated compile.yml & Makefile
  • Loading branch information
BRAVO68WEB authored Jan 17, 2025
2 parents 37f2061 + e69d317 commit 2a150b8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install rendercv
python3 -m pip install --force-reinstall rendercv==1.8
- name: 📝 Install LaTeX
run: |
Expand All @@ -50,7 +51,7 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: resume-pdf
path: out/${{ env.PDF_NAME }}
path: rendercv_output/${{ env.PDF_NAME }}

- name: 📤 Upload Misc artifact
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -117,7 +118,7 @@ jobs:
uses: actions/download-artifact@v4
with:
name: resume-pdf
path: out/
path: rendercv_output/

- name: 📤 Download Misc artifact
uses: actions/download-artifact@v4
Expand All @@ -131,15 +132,15 @@ jobs:
- name: 📄 Create GitHub Release
run: |
gh release create $TAG_NAME out/${{ env.PDF_NAME }} --title "Release $TAG_NAME" --notes "Generated CV PDF for release $TAG_NAME"
gh release create $TAG_NAME rendercv_output/${{ env.PDF_NAME }} --title "Release $TAG_NAME" --notes "Generated CV PDF for release $TAG_NAME"
- name: 📄 Upload assets to docs/ folder
run: |
mkdir -p docs-temp dl docs
mv ${{ env.MISC_NAME }} dl/resume.zip
unzip -o dl/${{ env.MISC_NAME }} -d docs-temp/
cp docs-temp/out/${{ env.PDF_NAME }} docs/cv.pdf
cp docs-temp/out/${{ env.HTML_NAME }} docs/index.html
cp docs-temp/rendercv_output/${{ env.PDF_NAME }} docs/cv.pdf
cp docs-temp/rendercv_output/${{ env.HTML_NAME }} docs/index.html
rm -rf docs-temp dl
git config user.name "b68web"
git config user.email "git@b68.dev"
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# Define variables for common paths
RESUME := resume.yaml
OUTPUT_DIR := out
OUTPUT_DIR := rendercv_output
ZIP_FILE := resume.zip

all: generate

# Generate the LaTeX file from the template and JSON data
generate:
rendercv render $(RESUME) --output-folder-name $(OUTPUT_DIR)
rendercv render $(RESUME)
zip -r $(ZIP_FILE) $(OUTPUT_DIR)

0 comments on commit 2a150b8

Please sign in to comment.