This repository has been archived by the owner on Mar 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 748
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: remove curl script and add github secret for NETLIFY_AUTH_TOKEN
Signed-off-by: Matt Hippely <mhippely@vmware.com>
- Loading branch information
1 parent
d866681
commit 2ee3d53
Showing
2 changed files
with
3 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,6 @@ | ||
#!/usr/bin/env bash | ||
|
||
echo "Download key-value env variables" | ||
# This downloads a set of key-value env variables, but blocks any requests that aren't from GitHub Actions | ||
curl -g https://us-central1-clarity-design-system.cloudfunctions.net/actions -o .env | ||
# dotenv loads up the env variables into the shell, then deploys through Netlify | ||
|
||
echo "Deploy a preview that can be promoted to clarity.design when we are ready" | ||
# Deploy a preview that can be promoted to production when we are ready | ||
node -r dotenv/config -- ./node_modules/.bin/netlify deploy --json --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA" --site "clarity.design" | ||
|
||
# echo "Deploy a preview that can be promoted to next.clarity.design when we are ready" | ||
# # Deploy a version to https://next.clarity.design as 'production' | ||
# node -r dotenv/config -- ./node_modules/.bin/netlify deploy --json --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA" --site "next.clarity.design" > ./logs/next.clarity.design.netlify.json | ||
|
||
# echo "Clarity Design Netlify" | ||
# cat ./logs/clarity.design.netlify.json | ||
./node_modules/.bin/netlify deploy --json --dir=./dist/website --message="Website - $GITHUB_REF@$GITHUB_SHA" --site "clarity.design" | ||
|
||
# echo "Clarity Next Design Netlify" | ||
# cat ./logs/next.clarity.design.netlify.json |