File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 7
7
- develop
8
8
9
9
env :
10
- CREDENTIALS_PATH : /Users/runner/hostedtoolcache/flutter/ .pub-cache
10
+ CREDENTIALS_PATH : /Users/runner/Library/Application Support/dart/ .pub-credentials.json
11
11
12
12
jobs :
13
13
check :
Original file line number Diff line number Diff line change @@ -2,16 +2,19 @@ name: Release workflow
2
2
3
3
on :
4
4
workflow_dispatch :
5
- release :
6
- types : [published]
5
+ push :
6
+ tags :
7
+ - ' [0-9]+.[0-9]+.[0-9]+*'
7
8
8
9
env :
9
10
CREDENTIALS_JSON : ${{secrets.CREDENTIALS_JSON}}
10
- CREDENTIALS_PATH : /Users/runner/hostedtoolcache/flutter/.pub-cache
11
+ CREDENTIALS_PATH : /Users/runner/.config/dart
11
12
12
13
jobs :
13
- release :
14
+ publish :
14
15
runs-on : macos-latest
16
+ permissions :
17
+ id-token : write
15
18
steps :
16
19
- uses : actions/checkout@v3
17
20
- uses : actions/setup-java@v3
23
26
flutter-version : ' 3.10.5'
24
27
25
28
- run : flutter pub get
26
- - run : mkdir -p $CREDENTIALS_PATH && echo $CREDENTIALS_JSON > $CREDENTIALS_PATH/credentials.json
29
+ - run : mkdir -p $CREDENTIALS_PATH && echo $CREDENTIALS_JSON > $CREDENTIALS_PATH/pub- credentials.json
27
30
28
31
- run : flutter pub publish -f
You can’t perform that action at this time.
0 commit comments