From 9766d2e9ab73d36737b16d4adfb87aaf27122e4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Fri, 7 Mar 2025 00:05:03 -0300 Subject: [PATCH] Fix release file --- .forgejo/workflows/release.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.forgejo/workflows/release.yml b/.forgejo/workflows/release.yml index b6baff7..b2cf298 100644 --- a/.forgejo/workflows/release.yml +++ b/.forgejo/workflows/release.yml @@ -21,30 +21,26 @@ jobs: uses: actions/checkout@v3 with: token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN - # Step 2: Install latex dependencies - name: Install LaTeX Dependencies run: | apt-get update apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended latexmk - # Step 3: Create build directory - name: Create dist directory run: | mkdir -p dist - # Step 3: Compile the LaTeX - name: Compile LaTeX document run: | latexmk -pdf -output-directory=dist main.tex - - # Step 4: Get commit messages for the release (from the tag) + # Step 4: Get commit messages for the release (from the tag) - name: Get commit messages for the release id: get_commit_messages run: | # Get the commit messages for the tag - COMMITS=$(git log ${GITHUB_REF} --pretty=format:'- %s' | head -n 20) # You can limit the number of commits if needed - echo "commits=$COMMITS" >> $GITHUB_ENV # Store the commit messages in the environment + COMMITS=$(git log ${GITHUB_REF} --pretty=format:'- %s' | head -n 20) + echo "commits=$COMMITS" >> $GITHUB_ENV # Step 5: Upload the compiled PDF as a release asset - name: Upload PDF to Release @@ -62,6 +58,6 @@ jobs: direction: upload url: https://git.leomurca.xyz repo: leomurca/resume - title: "Release ${GITHUB_REF##*/}" # Tag name as the title - release-notes: "${{ env.commits }}" # Use theA commit messages as release notes + title: "Release ${GITHUB_REF##*/}" + release-notes: "${{ env.commits }}"