From d3278ca7d1a7ee170bdd12e232f12931a455b9b6 Mon Sep 17 00:00:00 2001 From: alifeee Date: Sat, 11 Nov 2023 22:16:36 +0000 Subject: [PATCH] save pdf to artifact and release as well as zip --- .github/workflows/publish.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4c3b7ad..84bb507 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 @@ -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