Skip to content

Commit e320fec

Browse files
authored
fix CI misbehaving (#833)
1 parent 73f385a commit e320fec

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

.github/workflows/prepare.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
push:
66
branches: [master]
77
# don't run this workflow on version tags
8-
tags-ignore: ["v*"]
8+
tags-ignore: ['v*']
99
pull_request_target:
1010
branches: [master]
1111

@@ -20,7 +20,6 @@ jobs:
2020
include:
2121
- version: 3.0.0
2222
- channel: stable
23-
- channel: beta
2423

2524
steps:
2625
- name: Clone repository

.github/workflows/publish.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: publish
22

33
on:
44
push:
5-
tags: ["v*"]
5+
tags: ['v*']
66

77
jobs:
88
main:
@@ -12,10 +12,17 @@ jobs:
1212
- name: Checkout
1313
uses: actions/checkout@v3
1414

15-
- name: Setup Dart
15+
# This action adds a token needed for pub.dev
16+
- name: Set up Dart
1617
uses: dart-lang/setup-dart@v1
1718
with:
18-
sdk: 2.17.0
19+
sdk: stable
20+
21+
- name: Set up Flutter
22+
uses: subosito/flutter-action@v2
23+
with:
24+
channel: stable
25+
cache: true
1926

2027
- name: Install mobile-tools
2128
uses: actions/checkout@v3
@@ -41,11 +48,11 @@ jobs:
4148
echo "IS_PRERELEASE=$(is_prerelease flutter_downloader $tag)" >> $GITHUB_ENV
4249
4350
- name: Publish
44-
run: dart pub publish -f
51+
run: dart pub publish --force
4552

4653
- name: Create release
4754
uses: softprops/action-gh-release@v1
4855
with:
4956
name: ${{ github.ref_name }}
50-
body: "[See changelog on pub.dev](${{ env.RELEASE_NOTES }})"
57+
body: '[See changelog on pub.dev](${{ env.RELEASE_NOTES }})'
5158
prerelease: ${{ env.IS_PRERELEASE }}

0 commit comments

Comments
 (0)