From ed3f172ae1b73f824b65e70952d3f2a10d09ea4a Mon Sep 17 00:00:00 2001 From: Pedro Paulo de Amorim Date: Mon, 9 Feb 2026 09:53:13 +0000 Subject: [PATCH] Fix publish workflow: correct tag glob pattern and improve setup order The tag filter used regex syntax (+) instead of glob (*), preventing the workflow from triggering on version tags. Also removed the pinned Flutter version to always use latest stable and reordered steps so OIDC token setup runs after Flutter installation. Co-authored-by: Cursor --- .github/workflows/publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bfe0aba..9372b6c 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,7 +3,7 @@ name: 📦 Publish to pub.dev on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+' # Matches tags like 0.8.6 + - '[0-9]*.[0-9]*.[0-9]*' # Matches tags like 0.8.6 workflow_dispatch: jobs: @@ -15,15 +15,14 @@ jobs: - name: 🔄 Checkout repository uses: actions/checkout@v4 - - name: 🔑 Setup OIDC token - uses: dart-lang/setup-dart@v1 - - - name: Set up Flutter + - name: 🎯 Set up Flutter uses: subosito/flutter-action@v2 with: - flutter-version: '3.19.6' channel: 'stable' + - name: 🔑 Setup OIDC token + uses: dart-lang/setup-dart@v1 + - name: 📥 Install dependencies run: flutter pub get