Skip to content

Commit 2e77d34

Browse files
committed
chore: implement Diamond-Standard Automated Publishing (.github/workflows/publish.yml)
1 parent 3f8b3d2 commit 2e77d34

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Auto-Publish to Pub.dev
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
publish:
9+
permissions:
10+
id-token: write # Required for OIDC authentication
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- uses: dart-lang/setup-dart@v1
15+
16+
# This step handles the secure handshake between GitHub and pub.dev
17+
# You must configure your package as a "GitHub Actions Publisher" on pub.dev
18+
- name: Publish to pub.dev
19+
run: dart pub publish --force

0 commit comments

Comments
 (0)