Created
January 20, 2019 19:38
-
-
Save robertohuertasm/0d2c491f3e1268a73aafb34e22a9c3f3 to your computer and use it in GitHub Desktop.
publish_flutter_package
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
#!/usr/bin/env bash | |
mkdir -p .pub-cache | |
cat <<EOF > ~/.pub-cache/credentials.json | |
{ | |
"accessToken":"$accessToken", | |
"refreshToken":"$refreshToken", | |
"tokenEndpoint":"$tokenEndpoint", | |
"scopes":["https://www.googleapis.com/auth/plus.me","https://www.googleapis.com/auth/userinfo.email"], | |
"expiration":$expiration | |
} | |
EOF | |
echo "Let's publish this!" | |
pub publish -f |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment