Skip to content

Commit

Permalink
Update build-pdf.yml
Browse files Browse the repository at this point in the history
Signed-off-by: Rafael Sene <[email protected]>
  • Loading branch information
rpsene authored Apr 27, 2023
1 parent d3522c2 commit 81f67f1
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,21 @@ jobs:
echo "SHORT_SHA=$(echo ${GITHUB_SHA::7})" >> $GITHUB_ENV
echo "REPO_NAME=$(echo ${GITHUB_REPOSITORY##*/})" >> $GITHUB_ENV
# Upload the built PDF file as artifact
- name: Upload Build Artifact
# Upload the built PDF files as individual artifacts
- name: Upload Build Artifacts
run: |
for file in ${{ github.workspace }}/*.pdf; do
filename=$(basename "$file")
echo "Uploading $filename"
echo "ARTIFACT_NAME=$filename" >> $GITHUB_ENV
echo "ARTIFACT_PATH=$file" >> $GITHUB_ENV
done
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
path: |
${{ github.workspace }}/*.pdf
name: ${{ env.ARTIFACT_NAME }}
path: ${{ env.ARTIFACT_PATH }}
retention-days: 7

- name: Create Release
Expand Down

0 comments on commit 81f67f1

Please sign in to comment.