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]
@@ -63,31 +63,16 @@ jobs:
63
63
if : ${{ github.ref_type == 'tag' }}
64
64
needs : build
65
65
name : Deploy package
66
+ permissions :
67
+ id-token : write
66
68
runs-on : ubuntu-latest
67
-
68
69
steps :
69
- - name : Configure enviroment
70
- uses : actions/checkout@v3
71
- - name : Download flutter
72
- uses : subosito/flutter-action@v2
73
- with :
74
- channel : ' stable'
75
- - name : Setup pub credentials
76
- shell : bash
77
- env :
78
- PUB_DEV_PUBLISH_ACCESS_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_ACCESS_TOKEN }}
79
- PUB_DEV_PUBLISH_REFRESH_TOKEN : ${{ secrets.PUB_DEV_PUBLISH_REFRESH_TOKEN }}
80
- run : |
81
- sh ./tool/pub_login.sh
82
- - name : Publish package
83
- run : dart pub publish -v -f
84
- - name : Build changelog
85
- id : github_release
86
- uses : mikepenz/release-changelog-builder-action@v3
87
- env :
88
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
89
- - name : Create release
90
- uses : softprops/action-gh-release@v0.1.14
91
- with :
92
- body : ${{steps.github_release.outputs.changelog}}
70
+ - uses : actions/checkout@v3
71
+ - uses : dart-lang/setup-dart@v1
72
+ - name : Flutter action
73
+ uses : subosito/flutter-action@v2
74
+ with :
75
+ channel : ' stable'
76
+ - name : Publish package
77
+ run : dart pub publish -v -f
93
78
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments