Skip to content

Commit

Permalink
rename artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Purnomo Murniadi committed Jul 21, 2024
1 parent 81dc7d5 commit 4c473e4
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,39 @@ jobs:
steps:
- name: Set up Git repository
uses: actions/checkout@v2

- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
root_file: cv.tex

- name: Rename PDF file
run: mv cv.pdf aaron_murniadi_cv_v${{ github.run_number }}.pdf

- name: Upload PDF as artifact
uses: actions/upload-artifact@v2
with:
name: cv.pdf
path: cv.pdf
name: aaron_murniadi_cv_v${{ github.run_number }}.pdf
path: aaron_murniadi_cv_v${{ github.run_number }}.pdf

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v0.1-${{ github.run_number }}
release_name: Automated build v0.1-${{ github.run_number }}
tag_name: v${{ github.run_number }}
release_name: Automated build v${{ github.run_number }}
draft: false
prerelease: false

- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: cv.pdf
asset_name: cv.pdf
asset_path: aaron_murniadi_cv_v${{ github.run_number }}.pdf
asset_name: aaron_murniadi_cv_v${{ github.run_number }}.pdf
asset_content_type: application/pdf

0 comments on commit 4c473e4

Please sign in to comment.