Skip to content

Instantly share code, notes, and snippets.

@robertohuertasm
Created January 20, 2019 19:38
Show Gist options
  • Save robertohuertasm/0d2c491f3e1268a73aafb34e22a9c3f3 to your computer and use it in GitHub Desktop.
Save robertohuertasm/0d2c491f3e1268a73aafb34e22a9c3f3 to your computer and use it in GitHub Desktop.
publish_flutter_package
#!/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