From 1d495a47334b00f9b0071f3f43d56e85e8017435 Mon Sep 17 00:00:00 2001 From: Mark Date: Tue, 14 Jul 2026 12:23:47 +0000 Subject: [PATCH] chore: setup automated publishing workflows for each package --- .github/workflows/publish.yml | 14 -------------- .github/workflows/publish_inject_compile.yml | 16 ++++++++++++++++ .../publish_inject_compile_generator.yml | 16 ++++++++++++++++ example/clean_architecture/pubspec.yaml | 1 + 4 files changed, 33 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/publish_inject_compile.yml create mode 100644 .github/workflows/publish_inject_compile_generator.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index d24f850..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Publish to pub.dev - -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+*' - -jobs: - publish: - permissions: - id-token: write # Required for authentication using OIDC - uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 - with: - environment: 'pub.dev' \ No newline at end of file diff --git a/.github/workflows/publish_inject_compile.yml b/.github/workflows/publish_inject_compile.yml new file mode 100644 index 0000000..80599e9 --- /dev/null +++ b/.github/workflows/publish_inject_compile.yml @@ -0,0 +1,16 @@ +# .github/workflows/publish_inject_compile.yml +name: Publish inject_compile to pub.dev + +on: + push: + tags: + - 'inject_compile-v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + working-directory: package/inject_compile + environment: pub.dev diff --git a/.github/workflows/publish_inject_compile_generator.yml b/.github/workflows/publish_inject_compile_generator.yml new file mode 100644 index 0000000..35ba43a --- /dev/null +++ b/.github/workflows/publish_inject_compile_generator.yml @@ -0,0 +1,16 @@ +# .github/workflows/publish_inject_compile_generator.yml +name: Publish inject_compile_generator to pub.dev + +on: + push: + tags: + - 'inject_compile_generator-v[0-9]+.[0-9]+.[0-9]+*' + +jobs: + publish: + permissions: + id-token: write # Required for authentication using OIDC + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + with: + working-directory: package/inject_compile_generator + environment: pub.dev diff --git a/example/clean_architecture/pubspec.yaml b/example/clean_architecture/pubspec.yaml index 81df2cc..f28364c 100644 --- a/example/clean_architecture/pubspec.yaml +++ b/example/clean_architecture/pubspec.yaml @@ -1,6 +1,7 @@ name: clean_architecture description: A clean architecture example using inject_compile version: 1.0.0 +publish_to: none environment: sdk: ^3.12.2