Skip to content

Commit

Permalink
[fix] upload copy as artifact, maintain current for new branch
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmchiu committed Sep 7, 2024
1 parent be1fa35 commit 84a1422
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/generate-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,15 +134,16 @@ jobs:
- name: Inject page numbers back into the pdf
run: pdfjam --pagecommand '\pagestyle{plain}' --outfile textbook_full.pdf textbook_full.pdf

- name: Remove temporary files
- name: Remove temporary files, make temporary copy to upload as artifact
run: |
rm -rf pdf_output
cp textbook_full.pdf textbook_full_cpy.pdf
- name: Upload PDF as an artifact
uses: actions/upload-artifact@v4
with:
name: textbook-full
path: textbook_full.pdf
name: textbook-full-copy
path: textbook_full_cpy.pdf

- name: Commit changes to a new branch
if: github.event_name == 'push' && !contains(github.event.head_commit.message, 'Update PDF of textbook')
Expand Down

0 comments on commit 84a1422

Please sign in to comment.