File tree Expand file tree Collapse file tree 2 files changed +11
-52
lines changed Expand file tree Collapse file tree 2 files changed +11
-52
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : [main]
6
6
tags :
7
- - ' *'
7
+ - ' [0-9]+.[0-9]+.[0-9]+ *'
8
8
9
9
pull_request :
10
10
branches : [main]
@@ -56,31 +56,16 @@ jobs:
56
56
if : ${{ github.ref_type == 'tag' }}
57
57
needs : build
58
58
name : Deploy package
59
+ permissions :
60
+ id-token : write
59
61
runs-on : ubuntu-latest
60
-
61
62
steps :
62
- - name : Configure enviroment
63
- uses : actions/checkout@v3
64
- - name : Download flutter
65
- uses : subosito/flutter-action@v2
66
- with :
67
- channel : ' stable'
68
- - name : Setup pub credentials
69
- shell : bash
70
- env :
71
- PUB_DEV_PUBLISH_ACCESS_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
72
- PUB_DEV_PUBLISH_REFRESH_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
73
- run : |
74
- sh ./tool/pub_login.sh
75
- - name : Publish package
76
- run : dart pub publish -v -f
77
- - name : Build changelog
78
- id : github_release
79
- uses : mikepenz/release-changelog-builder-action@v3
80
- env :
81
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
82
- - name : Create release
83
-
84
- with :
85
- body : ${{steps.github_release.outputs.changelog}}
63
+ - uses : actions/checkout@v3
64
+ - uses : dart-lang/setup-dart@v1
65
+ - name : Flutter action
66
+ uses : subosito/flutter-action@v2
67
+ with :
68
+ channel : ' stable'
69
+ - name : Publish package
70
+ run : dart pub publish -v -f
86
71
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments