Skip to content

Commit

Permalink
chore: use featurepeek to deploy plaground
Browse files Browse the repository at this point in the history
Now that the playground can work client-side only, it's interesting to
deploy it as a static website for easy reviews.
  • Loading branch information
davinov committed Aug 28, 2020
1 parent f443f2d commit f607df0
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/playground.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# From https://docs.featurepeek.com/github-actions/
name: Build playground
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Cache node modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-build-${{ hashFiles('yarn.lock') }}
restore-keys: |
${{ runner.OS }}-build-${{ env.cache-name }}-
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies
run: yarn --frozen-lockfile
- name: Build Weaverbird module
run: yarn build-bundle
- name: Ping FeaturePeek
run: bash <(curl -s https://peek.run/ci) -a playground
env:
CI: true
4 changes: 2 additions & 2 deletions .github/workflows/storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,12 @@ jobs:
${{ runner.OS }}-build-
${{ runner.OS }}-
- name: Install dependencies
run: yarn
run: yarn --frozen-lockfile
- name: Build Weaverbird components bundle
run: yarn storybook:bundle
- name: Build storybook
run: yarn storybook:build
- name: Ping FeaturePeek
run: bash <(curl -s https://peek.run/ci)
run: bash <(curl -s https://peek.run/ci) -a storybook
env:
CI: true
6 changes: 5 additions & 1 deletion peek.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
version: 2

main:
playground:
type: static
path: /playground/dist

storybook:
type: static
path: /.storybook/dist

0 comments on commit f607df0

Please sign in to comment.