Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
sinaatalay committed Jul 7, 2024
1 parent 711ef22 commit 3a0a3b6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,16 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Download RenderCV Output
uses: actions/download-artifact@v4
with:
name: RenderCV Output
path: rendercv_output
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
*_CV.pdf
*_CV.tex
rendercv_output/*_CV.pdf
rendercv_output/*_CV.tex
generate_release_notes: true
make_latest: true
13 changes: 6 additions & 7 deletions .github/workflows/rendercv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,13 @@ jobs:
echo "No RenderCV file found!"
exit 1
fi
rendercv render $cv_file --pdf-path ../${cv_file%.yaml}.pdf --markdown-path ../README.md --latex-path ../${cv_file%.yaml}.tex
cd ..
rendercv render src/$cv_file --pdf-path ${cv_file%.yaml}.pdf --markdown-path README.md --latex-path ${cv_file%.yaml}.tex
- name: Upload rendercv_output as an artifact
uses: actions/upload-artifact@v4
with:
name: RenderCV Output
path: rendercv_output
- uses: dorny/paths-filter@v3
id: changes
with:
Expand All @@ -47,9 +52,3 @@ jobs:
git add -A
git commit -m "render the latest CV"
git push
- name: Upload rendercv_output as an artifact
if: steps.changes.outputs.cv == 'true'
uses: actions/upload-artifact@v4
with:
name: RenderCV Output
path: rendercv_output

0 comments on commit 3a0a3b6

Please sign in to comment.