From f2874559085e096b1a33875c6f34cc54ddcccbb3 Mon Sep 17 00:00:00 2001 From: Bartek Pacia Date: Tue, 14 Nov 2023 19:19:06 +0100 Subject: [PATCH] build Patrol extension on `pub publish` workflow --- .github/workflows/patrol-publish.yaml | 12 +++++++++++- .github/workflows/patrol_finders-publish.yaml | 8 +++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/patrol-publish.yaml b/.github/workflows/patrol-publish.yaml index 354632820..7ea1fac6a 100644 --- a/.github/workflows/patrol-publish.yaml +++ b/.github/workflows/patrol-publish.yaml @@ -18,6 +18,11 @@ jobs: id-token: write contents: write + strategy: + matrix: + flutter-version: ['3.16.0-0.5.pre'] + flutter-channel: ['beta'] + steps: - name: Clone repository uses: actions/checkout@v4 @@ -31,7 +36,12 @@ jobs: - name: Set up Flutter uses: subosito/flutter-action@v2 with: - channel: stable + flutter-version: ${{ matrix.flutter-version }} + channel: ${{ matrix.flutter-channel }} + + - name: Build DevTools extension + working-directory: packages/patrol_devtools_extension + run: ./publish_to_patrol_extension - name: Publish to pub.dev id: pub_release diff --git a/.github/workflows/patrol_finders-publish.yaml b/.github/workflows/patrol_finders-publish.yaml index 8f86bd593..6721892c7 100644 --- a/.github/workflows/patrol_finders-publish.yaml +++ b/.github/workflows/patrol_finders-publish.yaml @@ -18,6 +18,11 @@ jobs: id-token: write contents: write + strategy: + matrix: + flutter-version: ['3.16.0-0.5.pre'] + flutter-channel: ['beta'] + steps: - name: Clone repository uses: actions/checkout@v4 @@ -31,7 +36,8 @@ jobs: - name: Set up Flutter uses: subosito/flutter-action@v2 with: - channel: stable + flutter-version: ${{ matrix.flutter-version }} + channel: ${{ matrix.flutter-channel }} - name: Publish to pub.dev id: pub_release