Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Previews for PRs #15

Merged
merged 6 commits into from
Jul 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Comment Artifacts
on:
workflow_run:
workflows: [Export & Deploy 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/[email protected]
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
13 changes: 11 additions & 2 deletions .github/workflows/ExportNotebooks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Export Pluto notebooks & Deploy
name: Export & Deploy Notebooks
on:
pull_request:
push:
branches:
- main
Expand Down Expand Up @@ -40,8 +41,16 @@ jobs:
include("generate.jl")
'
working-directory: generate
- name: Build and Deploy

- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: website
path: ./website/__site

- 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