Skip to content

Commit

Permalink
Fix build latex workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
range3 committed Sep 18, 2024
1 parent 926c554 commit ddbc84b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/actions/latexmk/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ FILE_BASENAME=$(basename "${LATEX_FILE_NAME}" .tex)
OUTPUT_PDF="${FILE_BASENAME}-${VERSION_NAME}.pdf"

# Export environment variables for GitHub Actions to use in later steps
echo "LATEXMK_LATEX_FILE_NAME=${LATEX_FILE_NAME}" >> $GITHUB_ENV
echo "LATEXMK_OUTPUT_PDF=${OUTPUT_PDF}" >> $GITHUB_ENV

# Build the LaTeX document
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/build-latex.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ jobs:
- name: Build LaTeX and Set Output File Name
uses: ./.github/actions/latexmk
with:
latex_file_name: ${{ github.event.inputs.latex_file_name || 'main.tex' }}
latex_file_name: 'main.tex'

- name: Create and Upload a Release Asset
uses: softprops/action-gh-release@v2.0.8
with:
files: ./${{ env.OUTPUT_PDF }}
files: ./${{ env.LATEXMK_OUTPUT_PDF }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit ddbc84b

Please sign in to comment.