diff --git a/.github/workflows/CommentPR.yml b/.github/workflows/CommentPR.yml new file mode 100644 index 0000000..dfc96cc --- /dev/null +++ b/.github/workflows/CommentPR.yml @@ -0,0 +1,22 @@ +name: Add artifact links to pull request and related issues +on: + workflow_run: + workflows: ["Export Pluto notebooks"] + 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 diff --git a/.github/workflows/ExportPluto.yaml b/.github/workflows/ExportPluto.yaml index efcf7b8..b033804 100644 --- a/.github/workflows/ExportPluto.yaml +++ b/.github/workflows/ExportPluto.yaml @@ -4,6 +4,7 @@ on: branches: - main - master + pull_request: workflow_dispatch: jobs: @@ -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