Skip to content

Commit c76d690

Browse files
pub publish workflow
1 parent e113179 commit c76d690

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/publish_pub.yml

+26
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)