Skip to content

Commit

Permalink
use netlify endpoint that includes team
Browse files Browse the repository at this point in the history
so that the sites are created under the new team that has the open source account policy

https://open-api.netlify.com/#/default/createSiteInTeam
  • Loading branch information
tjenkinson authored Apr 10, 2019
1 parent c1bbfd4 commit f33208f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/deploy-netlify.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ deploy () {
echo "Creating site for current commit ($id)."
uuid=$(uuidgen)
commitSiteName="hls-js-$uuid"
commitSiteId=$(curl --fail -d "{\"name\":\"$commitSiteName\"}" -H "Content-Type: application/json" -X POST "https://api.netlify.com/api/v1/sites?access_token=$NETLIFY_ACCESS_TOKEN" | jq -r '.site_id')
commitSiteId=$(curl --fail -d "{\"name\":\"$commitSiteName\"}" -H "Content-Type: application/json" -X POST "https://api.netlify.com/api/v1/hls-js/sites?access_token=$NETLIFY_ACCESS_TOKEN" | jq -r '.site_id')
echo "Created site '$commitSiteId'."

deploy "$commitSiteId"
Expand Down

0 comments on commit f33208f

Please sign in to comment.