File tree Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Expand file tree Collapse file tree 1 file changed +17
-10
lines changed Original file line number Diff line number Diff line change 16
16
name : Test
17
17
runs-on : ubuntu-latest
18
18
steps :
19
- - uses : actions/checkout@v1
19
+ - uses : actions/checkout@v2
20
20
- uses : actions/setup-java@v1
21
21
with :
22
22
java-version : ' 12.x'
@@ -54,14 +54,21 @@ jobs:
54
54
id-token : write # This is required for authentication using OIDC
55
55
needs : [test]
56
56
runs-on : ubuntu-latest
57
- timeout-minutes : 15
57
+ timeout-minutes : 5
58
58
59
59
steps :
60
- - uses : actions/checkout@v3
61
- - uses : dart-lang/setup-dart@v1
62
- - name : Install dependencies
63
- run : dart pub get
64
- - name : code format
65
- run : dart format lib/*/*.dart lib/*.dart
66
- - name : Publish pkg
67
- run : dart pub publish --force
60
+ - uses : actions/checkout@v3
61
+ - name : Run a one-line script
62
+ id : vars
63
+ run : echo "pkg_tag=$(cat pubspec.yaml | grep version | head -1 | awk -F= "{ print $2 }" | sed 's/[version:,\",]//g' | tr -d '[[:space:]]')" >> $GITHUB_OUTPUT
64
+ - uses : dart-lang/setup-dart@v1
65
+ - uses : subosito/flutter-action@v2
66
+ with :
67
+ channel : " stable"
68
+
69
+ - name : Install dependencies
70
+ run : dart pub get
71
+ - name : code format
72
+ run : dart format lib/*/*.dart lib/*.dart
73
+ - name : Publish pkg
74
+ run : dart pub publish --server=https://pub.dartlang.org -f
You can’t perform that action at this time.
0 commit comments