From b7f3ce3caa15f9991fbcc69e24c09dfaaaebfdf0 Mon Sep 17 00:00:00 2001 From: Pedro Paulo de Amorim Date: Fri, 6 Jun 2025 00:41:17 +0100 Subject: [PATCH] Replace dart with flutter command --- .github/workflows/publish.yml | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6a8df3d..452ffe6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,22 +1,25 @@ -name: Publish to pub.dev +name: 📦 Publish to pub.dev on: push: tags: - - '[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}' + - '[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: '{{version}' + workflow_dispatch: -# Publish using custom workflow jobs: publish: permissions: id-token: write # Required for authentication using OIDC runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 - - name: Install dependencies + - name: 🔄 Checkout repository + uses: actions/checkout@v4 + + - name: 🔑 Setup OIDC token + uses: dart-lang/setup-dart@v1 + + - name: 📥 Install dependencies run: flutter pub get - # Here you can insert custom steps you need - # - run: dart tool/generate-code.dart - - name: Publish + + - name: 🚀 Publish run: dart pub publish --force \ No newline at end of file