From 9da287e27b2320e7067b1ef20e3dbf46d010acef Mon Sep 17 00:00:00 2001 From: Michael Costello Date: Mon, 22 Jan 2024 18:07:55 -0500 Subject: [PATCH] update and cleanup GH actions --- .github/workflows/compileandrelease.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/compileandrelease.yml b/.github/workflows/compileandrelease.yml index 322a0e5..85f83aa 100644 --- a/.github/workflows/compileandrelease.yml +++ b/.github/workflows/compileandrelease.yml @@ -1,24 +1,25 @@ -name: Compile Latex and Release PDF +--- +name: Compile LaTeX and Release PDF on: push: tags: - '*.*.*' - + jobs: build_latex: runs-on: ubuntu-latest steps: - name: Set up Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Compile LaTeX document - uses: xu-cheng/latex-action@v2 + uses: xu-cheng/latex-action@v3 with: root_file: mc_cv.tex - name: Create Release id: create_release - uses: actions/create-release@v1 + uses: ncipollo/release-action@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -28,12 +29,12 @@ jobs: prerelease: false - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1 + id: upload-release-asset + uses: softprops/action-gh-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - upload_url: ${{ steps.create_release.outputs.upload_url }} + upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./mc_cv.pdf asset_name: mc_cv.pdf asset_content_type: pdf