Skip to content

Commit e8d6833

Browse files
refactored: moved workflow to publish
1 parent 698ef4a commit e8d6833

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

.github/workflows/publish.yml

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Publish to pub.dev
2+
on:
3+
push:
4+
tags:
5+
- 'v[0-9]+.[0-9]+.[0-9]+*'
6+
jobs:
7+
publish:
8+
permissions:
9+
id-token: write
10+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v12

.github/workflows/release-on-push.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,4 @@ jobs:
3939
TAG="v${{ steps.get_version.outputs.version }}"
4040
git tag $TAG
4141
git push origin $TAG
42-
gh release create $TAG --title "$TAG"
43-
44-
publish:
45-
needs: create-release
46-
permissions:
47-
id-token: write
48-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
42+
gh release create $TAG --title "$TAG"

0 commit comments

Comments
 (0)