From 95112500a6e5301dd43d6fe675a27f1f70023226 Mon Sep 17 00:00:00 2001 From: Anas Naouchi Date: Fri, 10 Apr 2026 04:50:07 +0700 Subject: [PATCH] Add dart lang setup step to include autmatic OIDC setup support --- .github/workflows/ci.yml | 7 +++++++ .github/workflows/publish.yml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 953f7cf..1416b7d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,13 @@ jobs: with: fetch-depth: 0 # required for SonarCloud + - name: Setup Dart OIDC + # This step is not needed in the CI but we want to ensure that the publish flow will work so we include this here. + # 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@65eb853c7ba17dde3be364c3d2858773e7144260 + - name: Setup Flutter uses: subosito/flutter-action@v2 with: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index b8d6823..550034d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -43,6 +43,12 @@ jobs: - name: Checkout the repository uses: actions/checkout@v4 + - name: Setup Dart OIDC + # 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@65eb853c7ba17dde3be364c3d2858773e7144260 + - name: Setup Flutter uses: subosito/flutter-action@v2 with: