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