From 5ee4091bd55db8d28f383ec6fdefc25aabfc1b7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= <106257713+leomurca@users.noreply.github.com> Date: Mon, 5 Feb 2024 13:53:06 -0300 Subject: [PATCH] Update deploy-pdf.yml --- .github/workflows/deploy-pdf.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deploy-pdf.yml b/.github/workflows/deploy-pdf.yml index 8657453..fb85a10 100644 --- a/.github/workflows/deploy-pdf.yml +++ b/.github/workflows/deploy-pdf.yml @@ -14,8 +14,23 @@ jobs: uses: xu-cheng/latex-action@v3 with: root_file: main.tex - - name: Upload PDF file - uses: actions/upload-artifact@v3 + - name: Create Release + id: create_release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: PDF - path: main.pdf + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} + 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: ./main.pdf + asset_name: main.pdf + asset_content_type: pdf