-
Notifications
You must be signed in to change notification settings - Fork 4
50 lines (39 loc) · 1.38 KB
/
publish.yml
File metadata and controls
50 lines (39 loc) · 1.38 KB
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
name: Publish to pub.dev
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
publish:
name: Publish to pub.dev
permissions:
id-token: write # Required for requesting the JWT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
# Set up the Dart SDK and provision the OIDC token used for publishing.
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260
# Download Flutter SDK - needed for publishing Flutter packages.
- uses: flutter-actions/setup-flutter@18c66a64fb6f6d3338c63cabbc5cd6da395e7f1d
# Publish cnativeapi
- name: Install dependencies (cnativeapi)
run: dart pub get
working-directory: packages/cnativeapi
- name: Publish - dry run (cnativeapi)
run: dart pub publish --dry-run
working-directory: packages/cnativeapi
- name: Publish cnativeapi
run: dart pub publish -f
working-directory: packages/cnativeapi
# Publish nativeapi
- name: Install dependencies (nativeapi)
run: dart pub get
working-directory: packages/nativeapi
- name: Publish - dry run (nativeapi)
run: dart pub publish --dry-run
working-directory: packages/nativeapi
- name: Publish nativeapi
run: dart pub publish -f
working-directory: packages/nativeapi