Skip to content

Commit 721115e

Browse files
authored
ci: add pub publish workflow (#113)
Signed-off-by: Sahil Kumar <[email protected]>
1 parent dfbd816 commit 721115e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/pub_publish.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: pub_publish
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[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+
- name: 📚 Git Checkout
15+
uses: actions/checkout@v4
16+
- name: 🎯 Setup Dart
17+
uses: dart-lang/setup-dart@v1
18+
- name: 🐦 Setup Flutter
19+
uses: subosito/flutter-action@v2
20+
- name: 📦 Install Dependencies
21+
run: flutter pub get
22+
- name: 🌵 Dry Run
23+
run: dart pub publish --dry-run
24+
- name: 📢 Publish
25+
run: dart pub publish --force

0 commit comments

Comments
 (0)