Skip to content

Commit 0cb7153

Browse files
authored
chore: fix release workflow (#50)
```console Run dart pub get Resolving dependencies... Because maplibre requires the Flutter SDK, version solving failed. Flutter users should use `flutter pub` instead of `dart pub`. Error: Process completed with exit code 1. ```
1 parent b44c5da commit 0cb7153

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
custom: ["https://www.paypal.me/joschaeckert"]

.github/workflows/publish.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ on:
77

88
jobs:
99
publish:
10+
name: 'Publish to pub.dev'
1011
permissions:
11-
id-token: write # Required for authentication using OIDC
12-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
12+
id-token: write # This is required for requesting the OIDC
13+
runs-on: ubuntu-latest
14+
if: github.repository_owner == 'josxha'
15+
steps:
16+
- uses: actions/checkout@v4
17+
- uses: dart-lang/setup-dart@v1
18+
# --force skips the y/N confirmation
19+
# --skip-validation because of "Because maplibre requires the Flutter SDK, version solving failed. Flutter users should use `flutter pub` instead of `dart pub`."
20+
# see https://github.com/dart-lang/setup-dart/issues/68
21+
- name: Publish to pub.dev
22+
working-directory: ${{ inputs.working-directory }}
23+
run: dart pub publish --force --skip-validation

FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)