We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e113179 commit c76d690Copy full SHA for c76d690
.github/workflows/publish_pub.yml
@@ -0,0 +1,26 @@
1
+name: Publish to pub.dev
2
+on:
3
+ push:
4
+ branches:
5
+ - master
6
+jobs:
7
+ build:
8
+ runs-on: ubuntu-latest
9
+ container:
10
+ image: google/dart:latest
11
+ steps:
12
+ - uses: actions/checkout@v1
13
+ - name: Setup credentials
14
+ run: |
15
+ mkdir -p ~/.pub-cache
16
+ cat <<EOF > ~/.pub-cache/credentials.json
17
+ {
18
+ "accessToken":"${{ secrets.OAUTH_ACCESS_TOKEN }}",
19
+ "refreshToken":"${{ secrets.OAUTH_REFRESH_TOKEN }}",
20
+ "tokenEndpoint":"https://accounts.google.com/o/oauth2/token",
21
+ "scopes": [ "openid", "https://www.googleapis.com/auth/userinfo.email" ],
22
+ "expiration": 1584628470088
23
+ }
24
+ EOF
25
+ - name: Publish package
26
+ run: pub publish -f
0 commit comments