Skip to content

Commit

Permalink
chore: fix release workflow (#50)
Browse files Browse the repository at this point in the history
```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.
```
  • Loading branch information
josxha authored Sep 25, 2024
1 parent b44c5da commit 0cb7153
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.paypal.me/joschaeckert"]
15 changes: 13 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ on:

jobs:
publish:
name: 'Publish to pub.dev'
permissions:
id-token: write # Required for authentication using OIDC
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
id-token: write # This is required for requesting the OIDC
runs-on: ubuntu-latest
if: github.repository_owner == 'josxha'
steps:
- uses: actions/checkout@v4
- uses: dart-lang/setup-dart@v1
# --force skips the y/N confirmation
# --skip-validation because of "Because maplibre requires the Flutter SDK, version solving failed. Flutter users should use `flutter pub` instead of `dart pub`."
# see https://github.com/dart-lang/setup-dart/issues/68
- name: Publish to pub.dev
working-directory: ${{ inputs.working-directory }}
run: dart pub publish --force --skip-validation
1 change: 0 additions & 1 deletion FUNDING.yml

This file was deleted.

0 comments on commit 0cb7153

Please sign in to comment.