Merge pull request #746 from samalba/netlify-build

Netlify build
This commit is contained in:
Andrea Luzzardi 2021-06-30 12:23:01 +02:00 committed by GitHub
commit 65b4dea949
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -68,7 +68,7 @@ import (
} }
} }
setup: [ setup: [
"yarn global add netlify-cli@2.47.0", "yarn global add netlify-cli@3.38.10",
] ]
// set in netlify.sh.cue // set in netlify.sh.cue
// FIXME: use embedding once cue supports it // FIXME: use embedding once cue supports it

View File

@ -33,6 +33,10 @@ package netlify
exit 1 exit 1
fi fi
fi fi
netlify link --id "$site_id"
netlify build
netlify deploy \ netlify deploy \
--dir="$(pwd)" \ --dir="$(pwd)" \
--site="$site_id" \ --site="$site_id" \
@ -48,5 +52,4 @@ package netlify
printf "$url" > /netlify/url printf "$url" > /netlify/url
printf "$deployUrl" > /netlify/deployUrl printf "$deployUrl" > /netlify/deployUrl
printf "$logsUrl" > /netlify/logsUrl printf "$logsUrl" > /netlify/logsUrl
"""# """#