Skip to content

Commit 6aa9725

Browse files
authored
Enable automated publishing (#73)
1 parent ac3d87a commit 6aa9725

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/publish.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
name: Publish to pub.dev
11+
runs-on: ubuntu-latest
12+
environment: pub.dev
13+
permissions:
14+
id-token: write
15+
steps:
16+
- uses: actions/checkout@v3
17+
- uses: dart-lang/setup-dart@v1
18+
- uses: subosito/flutter-action@v2
19+
with:
20+
channel: 'stable'
21+
- run: flutter pub get
22+
- name: Publish
23+
run: flutter pub publish --force

0 commit comments

Comments
 (0)