Skip to content

Commit 96b273e

Browse files
committed
Add github action to publish package to pub.dev
1 parent 767867a commit 96b273e

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- '[0-9]+.[0-9]+.[0-9]+*'
7+
8+
jobs:
9+
publish:
10+
permissions:
11+
id-token: write # Required for authentication using OIDC
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
# Setup Flutter SDK and automated pub.dev credentials
17+
- uses: flutter-actions/setup-flutter@v3
18+
- uses: flutter-actions/setup-pubdev-credentials@v1
19+
20+
- name: Install dependencies
21+
run: flutter pub get
22+
23+
- name: Publish
24+
run: flutter pub publish --force

0 commit comments

Comments
 (0)