Skip to content

Commit

Permalink
Update pub_publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lohanidamodar committed Sep 23, 2023
1 parent daa7d03 commit bb48336
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/pub_publish.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,10 @@
name: Publish to pub.dev

on:
release:
types: [published]
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+*'

jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v1
- name: Setup credentials
run: |
mkdir -p ~/.config/dart
cat <<EOF > ~/.config/dart/pub-credentials.json
{
"accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1584628470088
}
EOF
- name: Publish package
run: dart pub publish -f
publish:
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

0 comments on commit bb48336

Please sign in to comment.