diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index a2f341e..301156f 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -31,6 +31,9 @@ jobs: - name: Verify formatting run: dart format --output=none --set-exit-if-changed . + - name: build freezed types + run: dart run build_runner build + # Your project will need to have tests in test/ and a dependency on # package:test for this step to succeed. Note that Flutter projects will # want to change this to 'flutter test'. diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..98a01f7 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,23 @@ +# .github/workflows/publish.yml +name: Publish to pub.dev + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' # tag pattern on pub.dev: 'v{{version}' + +# Publish using custom workflow +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: dart-lang/setup-dart@v1 + - name: Install dependencies + run: dart pub get + # Here you can insert custom steps you need + - run: dart run build_runner build + - name: Publish + run: dart pub publish --force