File tree 1 file changed +39
-0
lines changed
1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Publish to pub.dev
2
+
3
+ on :
4
+ release :
5
+ types : [created]
6
+ workflow_dispatch :
7
+
8
+ # based on dart-lang/setup-dart/.github/workflows/publish.yml@v1
9
+ # custimized for flutter
10
+
11
+ jobs :
12
+ publish :
13
+ name : ' Publish to pub.dev'
14
+ permissions :
15
+ id-token : write # Required for authentication using OIDC
16
+ runs-on : ubuntu-latest
17
+ steps :
18
+ # Checkout repository
19
+ - uses : actions/checkout@v4
20
+
21
+ # Setup Dart SDK with JWT token
22
+ - uses : dart-lang/setup-dart@v1
23
+ with :
24
+ sdk : stable
25
+
26
+ - name : Setup Flutter
27
+ uses : subosito/flutter-action@v2
28
+ with :
29
+ channel : stable
30
+
31
+ # Minimal package setup and dry run checks.
32
+ - name : Install dependencies
33
+ run : flutter pub get
34
+ - name : Publish - dry run
35
+ run : dart pub publish --dry-run
36
+
37
+ # Publishing...
38
+ - name : Publish to pub.dev
39
+ run : dart pub publish -f
You can’t perform that action at this time.
0 commit comments