Skip to content

Merge pull request #384 from cofacts/use-ar-time #102

Merge pull request #384 from cofacts/use-ar-time

Merge pull request #384 from cofacts/use-ar-time #102

Workflow file for this run

name: Build storybook and deploy to gh-pages
on:
push:
branches:
- master
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 16
- run: 'npm i'
- name: Generate staging .env file
run: 'curl $ENV_URL -o .env'
env:
ENV_URL: ${{ secrets.STAGING_ENV_URL }}
- run: 'npm run build-storybook'
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./storybook-static