Skip to content
22 changes: 22 additions & 0 deletions .github/workflows/CommentPR.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Add artifact links to pull request and related issues
on:
workflow_run:
workflows: ["Export Pluto notebooks"]
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
workflows: ["Export Pluto notebooks"]
workflows: [Export Pluto notebooks]

In the examples you linked to, there are no quotation marks

types: [completed]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
artifacts-url-comments:
name: add artifact links to pull request and related issues job
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: tonyhallett/artifacts-url-comments@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
prefix: Here are the build results
suffix: Artifacts will only be retained for 90 days.
format: name
addTo: pull
8 changes: 8 additions & 0 deletions .github/workflows/ExportPluto.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
branches:
- main
- master
pull_request:
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -47,9 +48,16 @@ jobs:
# more parameters can go here
)'

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: pluto-notebooks
path: .


- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@releases/v3
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
Expand Down