From 8f4d7b5fae7031706d8f588ceb225215873e1fa4 Mon Sep 17 00:00:00 2001 From: Adrian Edwards <17362949+MoralCode@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:43:43 -0500 Subject: [PATCH 1/2] Add GitHub Actions workflow for publishing to pub.dev --- .github/workflows/publish.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/publish.yml 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 From 7590479dd38b51cd2776f3fe33d29656fdc0efa7 Mon Sep 17 00:00:00 2001 From: Adrian Edwards <17362949+MoralCode@users.noreply.github.com> Date: Sat, 24 Jan 2026 14:44:58 -0500 Subject: [PATCH 2/2] Add step to build freezed types in tests workflow too --- .github/workflows/dart.yml | 3 +++ 1 file changed, 3 insertions(+) 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'.