Skip to content

Commit 7c05bb8

Browse files
feat: add publish workflow
1 parent 5fc62ec commit 7c05bb8

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Publish to pub.dev
2+
3+
on:
4+
push:
5+
tags:
6+
- "v[0-9]+.[0-9]+.[0-9]+*"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
17+
- uses: dart-lang/setup-dart@v1
18+
19+
- run: dart pub get
20+
- run: dart format --output=none --set-exit-if-changed .
21+
- run: dart analyze
22+
- run: dart test
23+
24+
- name: Publish to pub.dev
25+
run: dart pub publish --force

0 commit comments

Comments
 (0)