mirror of
https://github.com/primer/css.git
synced 2024-12-25 15:14:59 +03:00
40b9e1674c
* 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
15 lines
309 B
Bash
Executable File
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
|