-
Notifications
You must be signed in to change notification settings - Fork 3
58 lines (54 loc) · 1.69 KB
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# https://dart.dev/tools/pub/automated-publishing#publishing-packages-using-github-actions
name: Publish to pub.dev
on:
push:
tags:
- 'flutterfire_gen-v[0-9]+.[0-9]+.[0-9]+*'
- 'flutterfire_gen_annotation-v[0-9]+.[0-9]+.[0-9]+*'
- 'flutterfire_gen_utils-v[0-9]+.[0-9]+.[0-9]+*'
jobs:
publish_flutterfire_gen:
if: startsWith(github.ref, 'refs/tags/flutterfire_gen-v')
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Publish flutterfire_gen
run: |
cd packages/flutterfire_gen
flutter pub publish --force
publish_flutterfire_gen_annotation:
if: startsWith(github.ref, 'refs/tags/flutterfire_gen_annotation-v')
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Publish flutterfire_gen_annotation
run: |
cd packages/flutterfire_gen_annotation
flutter pub publish --force
publish_flutterfire_gen_utils:
if: startsWith(github.ref, 'refs/tags/flutterfire_gen_utils-v')
permissions:
id-token: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- name: Publish flutterfire_gen_utils
run: |
cd packages/flutterfire_gen_utils
flutter pub publish --force