Skip to content

Commit

Permalink
save pdf to artifact and release as well as zip
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Nov 11, 2023
1 parent cdf5548 commit d3278ca
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,16 @@ jobs:
- name: Build pdf
run: bun run build-pdf

- name: Save artifact
- name: Save build folder as artifact
uses: actions/upload-artifact@v3
with:
name: build
path: build
- name: Save pdf as artifact
uses: actions/upload-artifact@v2
with:
name: cv.pdf
path: build/cv.pdf

publish-to-release:
needs: build
Expand All @@ -53,6 +58,14 @@ jobs:
asset_name: build.zip
tag: ${{ github.ref }}
overwrite: true
- name: Upload pdf to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/cv.pdf
asset_name: cv.pdf
tag: ${{ github.ref }}
overwrite: true

publish-to-gh-pages-branch:
needs: build
Expand Down

0 comments on commit d3278ca

Please sign in to comment.