1
1
mirror of https://github.com/primer/css.git synced 2024-11-22 19:01:02 +03:00
css/script/build-docs
Rez 40b9e1674c
add deployment workflows for GitHub Pages (#2038)
* add workflows

* change trigger to pull_request

* remove duplciate workflow stage name

* remove workflow trigger conditions

* switch to experimental workflow

* attempt restoring storybook environment

* fix build trigger

* apply correct storybook environment

* add deployments to permissions

* bump more permissions

* add ref

* another workaround

* change target_url to make deployment appear

* revert ref stuff
2022-04-19 16:26:47 -07:00

15 lines
309 B
Bash
Executable File

#!/bin/bash -e
# Build the base project so we can pull out the JSON data
yarn dist
cp -rf dist docs
# Now build the docs site using that data
cd docs
if [ -n "$1" ]; then
CI=true yarn gatsby build && yarn build:storybook preview
else
CI=true yarn gatsby build --prefix-paths && yarn build:storybook
fi