Skip to content

Commit

Permalink
update workflow to publish package (#67)
Browse files Browse the repository at this point in the history
  • Loading branch information
necessarylion authored Aug 6, 2023
1 parent 8ee0c55 commit f3260c3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
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
2 changes: 1 addition & 1 deletion test/integration/http_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ void main() {
return 'pong';
}

Route.middleware([middlewareFn, ClassBasedMiddleware()], () {
Route.middleware(<dynamic>[middlewareFn, ClassBasedMiddleware()], () {
Route.get('/middleware_route', pong);
});

Expand Down

0 comments on commit f3260c3

Please sign in to comment.