mirror of
https://github.com/primer/css.git
synced 2024-12-02 07:53:06 +03:00
15 lines
415 B
Bash
Executable File
15 lines
415 B
Bash
Executable File
#!/bin/bash
|
|
set -e
|
|
|
|
if [ -z "$NOW_TOKEN" ]; then
|
|
echo "NOW_TOKEN is not set; skipping docs deployment"
|
|
else
|
|
cp modules/primer/build/build.css docs/static/primer.css
|
|
cd docs
|
|
npm run sync
|
|
now --token=$NOW_TOKEN | tee now-url.txt
|
|
url=$(cat now-url.txt)
|
|
version=$(jq -r .version ../modules/primer/package.json)
|
|
npx commit-status success docs "deployed primer@$version to $url" "$url"
|
|
fi
|