Skip to content

Commit

Permalink
chore(ci): add pub dev publishing via GitHub actions (#251)
Browse files Browse the repository at this point in the history
* ci(release): add automated publishing to pub dev via github actions

* chore: add workflow
  • Loading branch information
smallTrogdor authored Dec 16, 2024
1 parent 8d17e79 commit 68a4fe8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/pubdev-release.yml
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit 68a4fe8

Please sign in to comment.