Skip to content

Commit

Permalink
Fix Setup pub credentials in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jyaganeh committed Jul 10, 2024
1 parent cb84bd4 commit 1aa0237
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ jobs:

- name: Setup pub credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
mkdir -p ~/$PUB_CACHE
cat <<EOF > ~/$PUB_CACHE/credentials.json
{
"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
Expand All @@ -72,7 +72,6 @@ jobs:
"expiration": ${{secrets.OAUTH_EXPIRATION }}
}
EOF
cp ~/.pub-cache/credentials.json $PUB_CACHE/credentials.json
- name: Publish Dart/Flutter package
run: flutter pub publish -f
Expand Down

0 comments on commit 1aa0237

Please sign in to comment.