Skip to content

upgrade actions, hopefully fix build #24

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
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
12 changes: 7 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
name: Deploy Demo Site

on:
on:
push:
branches:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- run: npm install
- run: npm run build
- run: npm install -g surge
- run: surge --domain unofficial-observablehq-compiler-demo.surge.sh --project .
env:
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
16 changes: 9 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Pull Request Demos

on:
on:
pull_request:
types: [opened, reopened, synchronize]

Expand All @@ -9,19 +9,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1.1.0
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12'
- run: npm install
- run: npm run build
- run: npm install -g surge
- run: surge --domain unofficial-observablehq-compiler-demo-${{ github.event.number }}.surge.sh --project .
env:
env:
SURGE_TOKEN: ${{ secrets.SURGE_TOKEN }}
- uses: actions/github-script@0.2.0
- uses: actions/github-script@v3
with:
github-token: ${{github.token}}
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
await github.issues.createComment({
github.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down