From e9f249c38f60b68de3ecbaee120dd327529b5797 Mon Sep 17 00:00:00 2001 From: Rik Huijzer Date: Sat, 25 Nov 2023 12:03:31 +0100 Subject: [PATCH] Provide PDF artifact in PR (#322) --- .github/workflows/CI.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 9f285919..74596731 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -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.