From c499ce7ea301a493729f8a2f3b63e4df74d4c2a6 Mon Sep 17 00:00:00 2001 From: m0nac0 <58807793+m0nac0@users.noreply.github.com> Date: Fri, 8 Dec 2023 10:01:56 +0100 Subject: [PATCH] Update pub.dev workflow for platform_interface --- .../workflows/pub-platform-interface-publish.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pub-platform-interface-publish.yml b/.github/workflows/pub-platform-interface-publish.yml index ab081ff52..7b6cd81d7 100644 --- a/.github/workflows/pub-platform-interface-publish.yml +++ b/.github/workflows/pub-platform-interface-publish.yml @@ -4,11 +4,20 @@ on: push: tags: - 'pub-maplibre_gl_platform_interface-[0-9]+.[0-9]+.[0-9]+*' + workflow_dispatch: jobs: publish: permissions: id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - with: - working-directory: maplibre_gl_platform_interface + runs-on: ubuntu-latest + steps: + # Checkout repository + - uses: actions/checkout@v4 + # Setup Dart SDK with JWT token + - uses: dart-lang/setup-dart@b64355ae6ca0b5d484f0106a033dd1388965d06d + # Publishing... + # skip validation due to https://github.com/dart-lang/setup-dart/issues/68 + - name: Publish to pub.dev + run: dart pub publish -f --skip-validation + working-directory: maplibre_gl_platform_interface