Skip to content

Commit

Permalink
try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
triszt4n committed Sep 18, 2024
1 parent 21e835d commit ad707c4
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/generate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,25 +44,26 @@ jobs:

- name: Get dir of file
id: get-dir
run: echo "dir=$(dirname ${{ matrix.path }})" >> $GITHUB_OUTPUT
run: |
echo "dir=$(dirname ${{ matrix.path }})" >> $GITHUB_OUTPUT
echo "artifact=$(basename ${{ matrix.path }}))" >> $GITHUB_OUTPUT
- name: Compile LaTeX document
uses: xu-cheng/latex-action@v2
with:
working_directory: ${{ steps.get-dir.outputs.dir }}
root_file: ${{ matrix.path }}
root_file: ${{ steps.get-dir.outputs.artifact }}
latexmk_shell_escape: true

- name: Find PDF
id: find-pdf
run: |
find $(dirname ${{ matrix.path }}) -maxdepth 1 -name '*.pdf' -exec echo "pdf={}" >> $GITHUB_OUTPUT \;
echo "artifact=$(basename ${{ matrix.path }}))" >> $GITHUB_OUTPUT
- name: Store pdf
uses: actions/upload-artifact@v4
with:
name: ${{ steps.find-pdf.outputs.artifact }}
name: ${{ steps.get-dir.outputs.artifact }}
path: ${{ steps.find-pdf.outputs.pdf }}
retention-days: 1

Expand Down

0 comments on commit ad707c4

Please sign in to comment.