Skip to content

Commit

Permalink
Provide PDF artifact in PR (#322)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikhuijzer committed Nov 25, 2023
1 parent 34a7d3c commit e9f249c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/CI.yml
Expand Up @@ -46,3 +46,19 @@ jobs:
force_orphan: true
publish_dir: ./_build/

- name: Make preview PDF available
if: ${{ github.event_name == 'pull_request' }}
uses: actions/upload-artifact@v3
with:
name: pdf-preview
path: ./_build/juliadatascience.pdf
retention-days: 8

- name: Create a comment to say that the artifact is ready
if: ${{ github.event_name == 'pull_request' }}
uses: peter-evans/create-or-update-comment@v3
with:
issue-number: ${{ github.event.number }}
body: |
The PDF was created and uploaded as an artifact.
You can find it on the GitHub Actions Summary page for the GitHub Actions Runs in this PR.

0 comments on commit e9f249c

Please sign in to comment.