diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3589b8a..8e1b57d 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -1,21 +1,21 @@ -name: Release +name: Publish on: - release: - types: [created] + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+*' jobs: - Release: + Publish: + permissions: + id-token: write runs-on: ubuntu-latest steps: - - name: Check out repository - uses: actions/checkout@v2 - - name: 'Test plugin' - uses: k-paxian/dart-package-publisher@v1.5.1 - with: - credentialJson: ${{ secrets.DART_CREDENTIAL }} - flutter: false - suppressBuildRunner: true - testRunOnly: false - dryRunOnly: false + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + + - run: dart pub get + - run: dart test --concurrency=1 + - run: dart analyze + - run: dart pub publish --force diff --git a/test/integration/http_test.dart b/test/integration/http_test.dart index dafc1bc..29288f6 100644 --- a/test/integration/http_test.dart +++ b/test/integration/http_test.dart @@ -51,7 +51,7 @@ void main() { return 'pong'; } - Route.middleware([middlewareFn, ClassBasedMiddleware()], () { + Route.middleware([middlewareFn, ClassBasedMiddleware()], () { Route.get('/middleware_route', pong); });