From 68715629273a427ac6b5f5193797c7289da8ffb9 Mon Sep 17 00:00:00 2001 From: Pavel Grigorenko Date: Sat, 5 Apr 2025 15:58:35 +0200 Subject: [PATCH] Update build-latex.yml --- .github/workflows/build-latex.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-latex.yml b/.github/workflows/build-latex.yml index b256fd4..2e0829e 100644 --- a/.github/workflows/build-latex.yml +++ b/.github/workflows/build-latex.yml @@ -30,8 +30,7 @@ jobs: release: needs: build_latex - # Only runs on direct commits or merges to main - if: github.event_name == 'push' && github.ref == 'refs/heads/main' + if: github.event_name == 'push' && github.ref == 'refs/heads/main' runs-on: ubuntu-latest steps: - name: Set up Git repository @@ -49,6 +48,13 @@ jobs: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_ENV echo "release_date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV + - name: Move 'latest' tag to current commit + run: | + git config user.name "${{ github.actor }}" + git config user.email "${{ github.actor }}@users.noreply.github.com" + git tag -f latest + git push origin -f refs/tags/latest + - name: Create or Update GitHub Release id: create_release uses: softprops/action-gh-release@v2 @@ -64,3 +70,4 @@ jobs: prerelease: false env: GITHUB_TOKEN: ${{ secrets.GH_PAT }} +