From c21802dc505e35765fa73ad4191bbe120ee94522 Mon Sep 17 00:00:00 2001 From: Sigurd Meldgaard Date: Thu, 28 Nov 2024 08:16:37 +0100 Subject: [PATCH] Install a Flutter SDK in the publish workflow (#141) --- .github/workflows/publish.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 188d402..3596fe3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -29,8 +29,16 @@ jobs: steps: # Checkout repository - uses: actions/checkout@v4 - # Setup Dart SDK with JWT token + # Set up the Dart SDK and provision the OIDC token used for publishing. + # The `dart` command from this step will be shadowed by the one from the + # Flutter SDK below. - uses: dart-lang/setup-dart@0a8a0fc875eb934c15d08629302413c671d3f672 + # Download flutter SDK - needed for publishing Flutter packages. Can also + # publish pure Dart packages. + # + # The dart binary from a Flutter SDK facilitates publishing both Flutter + # and pure-dart packages. + - uses: flutter-actions/setup-flutter@d030cb603380106494f72d65a7e52462f380781f # Minimal package setup and dry run checks. - name: Install dependencies run: dart pub get