Compare commits

..

No commits in common. "335f59f2d8257fde1bf37f6bde8414f8c334030e" and "97aef4fcd11a1d9ab90305aa205f5784a7f46398" have entirely different histories.

View file

@ -33,29 +33,21 @@ jobs:
# Step 3: Compile the LaTeX.
- name: Compile LaTeX document
run: |
latexmk -pdf -jobname=dist/leonardo-murca-resume main.tex
rm -f dist/leonardo-murca-resume.aux dist/leonardo-murca-resume.log dist/leonardo-murca-resume.out dist/leonardo-murca-resume.fls dist/leonardo-murca-resume.fdb_latexmk
latexmk -pdf -jobname=dist/main main.tex && rm -f dist/main.aux dist/main.log dist/main.out dist/main.fls dist/main.fdb_latexmk
# Step 4: Get commit messages for the release (from the tag)
- name: Get commit messages for the release
id: get_commit_messages
run: |
LAST_TAG=$(git describe --tags --abbrev=0 $(git rev-list --tags --skip=1 --max-count=1) 2>/dev/null || echo "")
if [ -z "$LAST_TAG" ]; then
COMMITS=$(git log --pretty=format:'- %s' | head -n 20)
else
COMMITS=$(git log $LAST_TAG..HEAD --pretty=format:'- %s' | head -n 20)
fi
echo "commits<<EOF" >> $GITHUB_ENV
echo "$COMMITS" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
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
uses: actions/upload-artifact@v3
with:
name: leonardo-murca-resume.pdf # The file to upload as the release asset.
path: dist/leonardo-murca-resume.pdf # Path to the compiled PDaF
name: main.pdf # The file to upload as the release asset
path: dist/main.pdf # Path to the compiled PDaF
# Step 6: Create release
- name: Create release