Skip to content

Commit 33f05a1

Browse files
authored
chore: add github action for pub publish (#117)
1 parent ff34cc6 commit 33f05a1

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Diff for: .github/workflows/pub_publish.yaml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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: 📦 Install Dependencies
19+
run: dart pub get
20+
- name: 🌵 Dry Run
21+
run: dart pub publish --dry-run
22+
- name: 📢 Publish
23+
run: dart pub publish --force

0 commit comments

Comments
 (0)