Fix release file

This commit is contained in:
Leonardo Murça 2025-03-07 00:05:03 -03:00
parent 25ff93d614
commit 9766d2e9ab

View file

@ -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 }}"