diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aa77bbb..b11af3f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,9 +1,6 @@ name: CI on: - push: - branches: - - dev pull_request: branches: - main @@ -32,26 +29,4 @@ jobs: run: flutter analyze - name: Run tests - run: flutter test - - build-example: - name: Build Example - runs-on: ubuntu-latest - needs: analyze - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Setup Flutter - uses: subosito/flutter-action@v2 - with: - channel: stable - - - name: Get dependencies - working-directory: example - run: flutter pub get - - - name: Build web - working-directory: example - run: flutter build web + run: flutter test \ No newline at end of file diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 715e3b1..78d9e18 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -49,8 +49,10 @@ jobs: - name: Create tag run: | + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" git tag v${{ steps.version.outputs.version }} git push origin v${{ steps.version.outputs.version }} - name: Publish to pub.dev - run: flutter pub publish --force + uses: dart-lang/setup-dart/publish@v1 \ No newline at end of file