From 8cdba93517caeec42da308d6229a18ab1787bc99 Mon Sep 17 00:00:00 2001 From: PiotrMitkowski Date: Mon, 13 May 2024 19:40:30 +0200 Subject: [PATCH] Github Actions cleanup --- .github/workflows/publish.yml | 17 +++++++++++++---- .github/workflows/test.yml | 3 --- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index fec78a9..3648a16 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -4,16 +4,25 @@ on: push: tags: - '[0-9]+.[0-9]+.[0-9]+*' + +env: + FLUTTER_VERSION: 3.19.6 + jobs: publish: name: 'Publish to pub.dev' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dart-lang/setup-dart@v1 + - name: Install and set Flutter version + uses: subosito/flutter-action@v2.4.0 + with: + flutter-version: ${{ env.FLUTTER_VERSION }} + channel: stable + cache: true - name: Install dependencies - run: dart pub get + run: flutter pub get - name: Publish - dry run - run: dart pub publish --dry-run + run: flutter pub publish --dry-run - name: Publish to pub.dev - run: dart pub publish -f + run: flutter pub publish -f diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 59bc0c2..9e7e113 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,14 +38,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: dart-lang/setup-dart@v1 - name: Install and set Flutter version uses: subosito/flutter-action@v2.4.0 with: flutter-version: ${{ env.FLUTTER_VERSION }} channel: stable cache: true - # - name: Install dependencies - # run: dart pub get - name: Publish - dry run run: flutter pub publish --dry-run