From 0cb71535713c0a0495fc7986723862ec360d8523 Mon Sep 17 00:00:00 2001 From: Joscha <34318751+josxha@users.noreply.github.com> Date: Thu, 26 Sep 2024 00:48:05 +0200 Subject: [PATCH] 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. ``` --- .github/FUNDING.yml | 1 + .github/workflows/publish.yml | 15 +++++++++++++-- FUNDING.yml | 1 - 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 .github/FUNDING.yml delete mode 100644 FUNDING.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 00000000..de6285be --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +custom: ["https://www.paypal.me/joschaeckert"] \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a62a26cd..a0c36576 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file diff --git a/FUNDING.yml b/FUNDING.yml deleted file mode 100644 index c538515b..00000000 --- a/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -custom: ["https://www.paypal.com/paypalme/joschaeckert", PayPal] \ No newline at end of file