From 443678d044058bc31a228f755c534b3329cb915f Mon Sep 17 00:00:00 2001 From: Chinmay-KB Date: Tue, 10 Mar 2026 11:24:01 +0530 Subject: [PATCH] chore: add GitHub Actions workflow for publishing to pub.dev Introduced a new workflow to automate the publishing process to pub.dev, triggered by version tag pushes. This setup utilizes the dart-lang/setup-dart action for streamlined deployment. --- .github/workflows/publish.yml | 16 ++++++++++++++++ 1 file changed, 16 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..880b92d --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,16 @@ +# https://dart.dev/tools/pub/automated-publishing +name: Publish to pub.dev + +on: + push: + tags: + # Must match the tag-pattern configured on pub.dev (e.g. v{{version}}) + - 'v[0-9]+.[0-9]+.[0-9]+' + +jobs: + publish: + permissions: + id-token: write # Required for OIDC authentication with pub.dev + uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1 + # with: + # working-directory: path/to/package/within/repository