Skip to content

Commit

Permalink
🔧 chore: use k-paxian/dart-package-publisher
Browse files Browse the repository at this point in the history
  • Loading branch information
susatthi committed Oct 15, 2023
1 parent e9462cc commit d4a8aa6
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,11 @@ jobs:
uses: dart-lang/setup-dart@v1
with:
sdk: stable
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_CREDENTIALS_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_CREDENTIALS_REFRESH_TOKEN }}",
"idToken":"${{ secrets.PUB_CREDENTIALS_ID_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": ["openid","https://www.googleapis.com/auth/userinfo.email"],
"expiration": 1651458128502
}
EOF
- name: Publish to pub.dev
run: dart pub publish -f
uses: k-paxian/dart-package-publisher@master
with:
accessToken: ${{ secrets.PUB_CREDENTIALS_ACCESS_TOKEN }}
refreshToken: ${{ secrets.PUB_CREDENTIALS_REFRESH_TOKEN }}
- name: Create release
uses: actions/create-release@v1
env:
Expand Down

0 comments on commit d4a8aa6

Please sign in to comment.