Skip to content

Commit 568b13c

Browse files
authored
[pub] Fix pipeline v2 (aissat#587)
* try * readd condition
1 parent fa92405 commit 568b13c

File tree

1 file changed

+17
-10
lines changed

1 file changed

+17
-10
lines changed

.github/workflows/main.yml

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Test
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v1
19+
- uses: actions/checkout@v2
2020
- uses: actions/setup-java@v1
2121
with:
2222
java-version: '12.x'
@@ -54,14 +54,21 @@ jobs:
5454
id-token: write # This is required for authentication using OIDC
5555
needs: [test]
5656
runs-on: ubuntu-latest
57-
timeout-minutes: 15
57+
timeout-minutes: 5
5858

5959
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

0 commit comments

Comments
 (0)