From 51412e7fc3ab2e2e57a21f8c6851636717a26852 Mon Sep 17 00:00:00 2001 From: CloudWebRTC Date: Wed, 8 May 2024 22:44:37 +0800 Subject: [PATCH] Update publish.yaml --- .github/workflows/publish.yaml | 33 +++++++++++++++++++++++---------- 1 file changed, 23 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 4ae46b26..5c9d8574 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -5,17 +5,30 @@ on: types: [published] jobs: - publish: - + build: runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v1 + - uses: actions/checkout@v2 + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + channel: 'stable' + - name: Install project dependencies + run: flutter pub get + - name: Dart Format Check + run: dart format lib/ test/ --set-exit-if-changed + - name: Import Sorter Check + run: flutter pub run import_sorter:main --no-comments --exit-if-changed + - name: Dart Analyze Check + run: flutter analyze + - name: Dart Test Check + run: flutter test + #- name: Check Publish Warnings + # run: dart pub publish --dry-run - name: Publish - uses: sakebook/actions-flutter-pub-publisher@v1.3.1 + uses: k-paxian/dart-package-publisher@v1.5.1 with: - credential: ${{ secrets.CREDENTIAL_JSON }} - flutter_package: true - skip_test: true - dry_run: false + credentialJson: ${{ secrets.CREDENTIAL_JSON }} + flutter: true + skipTests: true + force: true