From 86d7409811677cb62e4b94e74ccaa64e0aa6adc8 Mon Sep 17 00:00:00 2001 From: Ethan Havemann <94627102+echavemann@users.noreply.github.com> Date: Fri, 19 May 2023 21:03:59 -0500 Subject: [PATCH] prayge --- .github/workflows/texgen.yml | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/.github/workflows/texgen.yml b/.github/workflows/texgen.yml index 274f7e7..069454c 100644 --- a/.github/workflows/texgen.yml +++ b/.github/workflows/texgen.yml @@ -15,8 +15,23 @@ jobs: uses: xu-cheng/latex-action@v2 with: root_file: "src.tex" - - name: Upload - uses: actions/upload-artifact@v3 + - name: Release + id: release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: - name: PDF - path: src.pdf + tag_name: ${{ github.ref }} + release_name: Release ${{ github.ref }} ${{ github.event.head_commit.message }} + draft: false + prerelease: false + - name: Upload + id: upload + uses: actions/upload-release-asset@v1 + env: + GITHUB_TOKEN: ${{ secrets.TOKEN }} + with: + upload_url: ${{ steps.create_release.outputs.upload_url }} + asset_path: ./file1.pdf + asset_name: file1.pdf + asset_content_type: pdf