Fix release file
This commit is contained in:
parent
25ff93d614
commit
9766d2e9ab
1 changed files with 5 additions and 9 deletions
|
@ -21,30 +21,26 @@ jobs:
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN
|
token: ${{ secrets.RELEASE_TOKEN }} # Use RELEASE_TOKEN instead of GITHUB_TOKEN
|
||||||
|
|
||||||
# Step 2: Install latex dependencies
|
# Step 2: Install latex dependencies
|
||||||
- name: Install LaTeX Dependencies
|
- name: Install LaTeX Dependencies
|
||||||
run: |
|
run: |
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended latexmk
|
apt-get install -y texlive texlive-latex-extra texlive-fonts-recommended latexmk
|
||||||
|
|
||||||
# Step 3: Create build directory
|
# Step 3: Create build directory
|
||||||
- name: Create dist directory
|
- name: Create dist directory
|
||||||
run: |
|
run: |
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
|
|
||||||
# Step 3: Compile the LaTeX
|
# Step 3: Compile the LaTeX
|
||||||
- name: Compile LaTeX document
|
- name: Compile LaTeX document
|
||||||
run: |
|
run: |
|
||||||
latexmk -pdf -output-directory=dist main.tex
|
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
|
- name: Get commit messages for the release
|
||||||
id: get_commit_messages
|
id: get_commit_messages
|
||||||
run: |
|
run: |
|
||||||
# Get the commit messages for the tag
|
# 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
|
COMMITS=$(git log ${GITHUB_REF} --pretty=format:'- %s' | head -n 20)
|
||||||
echo "commits=$COMMITS" >> $GITHUB_ENV # Store the commit messages in the environment
|
echo "commits=$COMMITS" >> $GITHUB_ENV
|
||||||
|
|
||||||
# Step 5: Upload the compiled PDF as a release asset
|
# Step 5: Upload the compiled PDF as a release asset
|
||||||
- name: Upload PDF to Release
|
- name: Upload PDF to Release
|
||||||
|
@ -62,6 +58,6 @@ jobs:
|
||||||
direction: upload
|
direction: upload
|
||||||
url: https://git.leomurca.xyz
|
url: https://git.leomurca.xyz
|
||||||
repo: leomurca/resume
|
repo: leomurca/resume
|
||||||
title: "Release ${GITHUB_REF##*/}" # Tag name as the title
|
title: "Release ${GITHUB_REF##*/}"
|
||||||
release-notes: "${{ env.commits }}" # Use theA commit messages as release notes
|
release-notes: "${{ env.commits }}"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue