Skip to content

Commit

Permalink
Added workflow to auto release
Browse files Browse the repository at this point in the history
  • Loading branch information
chinloyal committed Nov 7, 2020
1 parent 6e029cc commit e378881
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish pusher_client to pub.dev
on:
release:
types:
- published
jobs:
build:
runs-on: ubuntu-latest
container:
image: google/dart:latest
steps:
- uses: actions/checkout@v1
- name: Setup credentials
run: |
mkdir -p ~/.pub-cache
cat <<EOF > ~/.pub-cache/credentials.json
{
"accessToken":"${{ secrets.PUB_ACCESS_TOKEN }}",
"refreshToken":"${{ secrets.PUB_REFRESH_TOKEN }}",
"tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
"scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
"expiration": 1604281072748
}
EOF
- name: Publish package
run: pub publish -f

0 comments on commit e378881

Please sign in to comment.