-
Notifications
You must be signed in to change notification settings - Fork 113
51 lines (45 loc) · 1.19 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
name: Publish to pub.dev
on:
push:
tags:
# Must align with the tag-pattern configured on pub.dev.
- 'v[0-9]+.[0-9]+.[0-9]+*'
jobs:
pana:
timeout-minutes: 9
runs-on: ubuntu-latest
name: Configuration of ${{ matrix.package }}
strategy:
matrix:
package:
- 'flutter_math_fork'
fail-fast: false
steps:
- uses: actions/[email protected]
- uses: axel-op/dart-package-analyzer@v3
with:
relativePath: ${{ matrix.package }}
githubToken: ${{ secrets.GITHUB_TOKEN }}
publish:
needs: pana
timeout-minutes: 4
runs-on: ubuntu-latest
name: Publishing of ${{ matrix.package }}
permissions:
id-token: write # Allows to publish to pub.dev without personal credentials
strategy:
matrix:
package:
- 'flutter_math_fork'
fail-fast: false
steps:
- uses: actions/[email protected]
with:
fetch-depth: 2
- uses: dart-lang/setup-dart@v1
- uses: subosito/flutter-action@v2
with:
channel: 'stable'
- run: flutter pub get
- run: flutter pub publish --dry-run
- run: flutter pub publish --force