Skip to content

Commit e17aeb1

Browse files
committed
fix: pub.dev authentication failed
fixed pub.dev authentication failed
1 parent 568b13c commit e17aeb1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,11 @@ jobs:
6666
with:
6767
channel: "stable"
6868

69+
- name: Add pub token
70+
run: echo ${{secrets.OAUTH_ACCESS_TOKEN}} | dart pub token add https://pub.dev
6971
- name: Install dependencies
7072
run: dart pub get
7173
- name: code format
7274
run: dart format lib/*/*.dart lib/*.dart
7375
- name: Publish pkg
74-
run: dart pub publish --server=https://pub.dartlang.org -f
76+
run: dart pub publish --server=https://pub.dartlang.org -f

0 commit comments

Comments
 (0)