From 68a4fe8514a804ae676d69a792265b3355233df0 Mon Sep 17 00:00:00 2001 From: Nico Vidoni <30844036+smallTrogdor@users.noreply.github.com> Date: Mon, 16 Dec 2024 12:54:43 +0100 Subject: [PATCH] chore(ci): add pub dev publishing via GitHub actions (#251) * ci(release): add automated publishing to pub dev via github actions * chore: add workflow --- .github/workflows/pubdev-release.yml | 12 ++++++++++++ RELEASE.md | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/pubdev-release.yml diff --git a/.github/workflows/pubdev-release.yml b/.github/workflows/pubdev-release.yml new file mode 100644 index 0000000..608ff44 --- /dev/null +++ b/.github/workflows/pubdev-release.yml @@ -0,0 +1,12 @@ +name: Publish to pub.dev + +on: + push: + tags: + - "[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 diff --git a/RELEASE.md b/RELEASE.md index c036e43..e4e1dbf 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -19,5 +19,5 @@ Merging a pull request with the `autorelease` label will trigger the `github-rel ##### Pub Dev release -Since the creation of pubdev releases is not currently possible from Github Actions with workflows triggered by -other bots, the release is done manually by one of the maintainers. +The creation of a tag in the `github-release` workflow triggers the `pubdev-release` workflow that will complete +all necessary steps for publishing the package to pubdev.