Commit 7d7c2a9 1 parent fb61a1b commit 7d7c2a9 Copy full SHA for 7d7c2a9
File tree 6 files changed +171
-4
lines changed
6 files changed +171
-4
lines changed Original file line number Diff line number Diff line change 18
18
- name : Checkout code
19
19
uses : actions/checkout@v2
20
20
21
- - name : Update submodules
22
- run : git submodule sync --recursive && git submodule update --init --recursive
23
-
24
21
- name : Set up JDK 11
25
22
uses : actions/setup-java@v3
26
23
with :
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - main
5
+
6
+ name : Run Release Please
7
+ jobs :
8
+ release-please :
9
+ runs-on : ubuntu-latest
10
+
11
+ # Release-please creates a PR that tracks all changes
12
+ steps :
13
+ - uses : google-github-actions/release-please-action@v3
14
+ id : release
15
+ with :
16
+ release-type : simple
17
+ command : manifest
18
+ default-branch : main
19
+
20
+ - name : Dump Release Please Output
21
+ env :
22
+ RELEASE_PLEASE_OUTPUT : ${{ toJson(steps.release.outputs) }}
23
+ run : |
24
+ echo "$RELEASE_PLEASE_OUTPUT"
25
+
26
+ outputs :
27
+ release_created : ${{ steps.release.outputs.release_created }}
28
+
29
+ flutter-release :
30
+ needs : release-please
31
+ runs-on : ubuntu-latest
32
+ if : ${{ needs.release-please.outputs.release_created }}
33
+ steps :
34
+ - uses : actions/checkout@v4
35
+ with :
36
+ ref : ${{ needs.release-please.outputs.release_tag_name }}
37
+
38
+ - name : Set up Flutter
39
+ uses : subosito/flutter-action@v2
40
+ with :
41
+ flutter-version : ${{ env.FLUTTER_VERSION }}
42
+ channel : ${{ env.FLUTTER_CHANNEL }}
43
+
44
+ - name : Install dependencies
45
+ working-directory : example
46
+ run : flutter pub get
47
+
48
+ - name : Setup Pub Credentials
49
+ shell : bash
50
+ env :
51
+ PUB_ACCESS_TOKEN : ${{ secrets.PUB_ACCESS_TOKEN }}
52
+ PUB_REFRESH_TOKEN : ${{ secrets.PUB_REFRESH_TOKEN }}
53
+ PUB_TOKEN_ENDPOINT : ${{ secrets.PUB_TOKEN_ENDPOINT }}
54
+ PUB_EXPIRATION : ${{ secrets.PUB_EXPIRATION }}
55
+ run : |
56
+ sh ./pub_login.sh
57
+ - name : Check Publish Warnings
58
+ run : pub publish --dry-run
59
+ # - name: Publish Package
60
+ # run: pub publish -f
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ packages:
47
47
path: ".."
48
48
relative: true
49
49
source: path
50
- version: "0.0.1 "
50
+ version: "0.0.4 "
51
51
cupertino_icons:
52
52
dependency: "direct main"
53
53
description:
Original file line number Diff line number Diff line change
1
+ # This script creates/updates credentials.json file which is used
2
+ # to authorize publisher when publishing packages to pub.dev
3
+
4
+ # Checking whether the secrets are available as environment
5
+ # variables or not.
6
+ if [ -z " ${PUB_ACCESS_TOKEN" ]; then
7
+ echo " Missing PUB_ACCESS_TOKEN environment variable"
8
+ exit 1
9
+ fi
10
+
11
+ if [ -z " ${PUB_REFRESH_TOKEN} " ]; then
12
+ echo " Missing PUB_REFRESH_TOKEN environment variable"
13
+ exit 1
14
+ fi
15
+
16
+ if [ -z " ${PUB_TOKEN_ENDPOINT} " ]; then
17
+ echo " Missing PUB_TOKEN_ENDPOINT environment variable"
18
+ exit 1
19
+ fi
20
+
21
+ if [ -z " ${PUB_EXPIRATION} " ]; then
22
+ echo " Missing PUB_EXPIRATION environment variable"
23
+ exit 1
24
+ fi
25
+
26
+ # Create credentials.json file.
27
+ cat <<EOF > ~/.pub-cache/credentials.json
28
+ {
29
+ " accessToken" :" ${PUB_ACCESS_TOKEN} " ,
30
+ " refreshToken" :" ${PUB_REFRESH_TOKEN} " ,
31
+ " tokenEndpoint" :" ${PUB_TOKEN_ENDPOINT} " ,
32
+ " scopes" :[" https:// www.googleapis.com/ auth/ userinfo.email" ," openid" ],
33
+ " expiration" :${PUB_EXPIRATION}
34
+ }
35
+ EOF
Original file line number Diff line number Diff line change 1
1
name : confidence_flutter_sdk
2
2
description : " Flutter implementation of the Confidence."
3
+ # x-release-please-start-version
3
4
version : 0.0.4
5
+ # x-release-please-end
4
6
homepage : https://confidence.spotify.com
5
7
6
8
platforms :
Original file line number Diff line number Diff line change
1
+ {
2
+ "bootstrap-sha" : " fe4d0c5e5553cf34a4089e52de5324370bb933dd" ,
3
+ "packages" : {
4
+ "." : {
5
+ "release-type" : " simple" ,
6
+ "bump-minor-pre-major" : true ,
7
+ "bump-patch-for-minor-pre-major" : true ,
8
+ "versioning" : " default" ,
9
+ "include-v-in-tag" : false ,
10
+ "commit-search-depth" : 1000 ,
11
+ "extra-files" : [
12
+ " README.md" ,
13
+ " build.gradle.kts"
14
+ ]
15
+ }
16
+ },
17
+ "changelog-sections" : [
18
+ {
19
+ "type" : " fix" ,
20
+ "section" : " 🐛 Bug Fixes"
21
+ },
22
+ {
23
+ "type" : " feat" ,
24
+ "section" : " ✨ New Features"
25
+ },
26
+ {
27
+ "type" : " chore" ,
28
+ "section" : " 🧹 Chore"
29
+ },
30
+ {
31
+ "type" : " docs" ,
32
+ "section" : " 📚 Documentation"
33
+ },
34
+ {
35
+ "type" : " perf" ,
36
+ "section" : " 🚀 Performance"
37
+ },
38
+ {
39
+ "type" : " build" ,
40
+ "hidden" : true ,
41
+ "section" : " 🛠️ Build"
42
+ },
43
+ {
44
+ "type" : " deps" ,
45
+ "section" : " 📦 Dependencies"
46
+ },
47
+ {
48
+ "type" : " ci" ,
49
+ "hidden" : true ,
50
+ "section" : " 🚦 CI"
51
+ },
52
+ {
53
+ "type" : " refactor" ,
54
+ "section" : " 🔄 Refactoring"
55
+ },
56
+ {
57
+ "type" : " revert" ,
58
+ "section" : " 🔙 Reverts"
59
+ },
60
+ {
61
+ "type" : " style" ,
62
+ "hidden" : true ,
63
+ "section" : " 🎨 Styling"
64
+ },
65
+ {
66
+ "type" : " test" ,
67
+ "hidden" : true ,
68
+ "section" : " 🧪 Tests"
69
+ }
70
+ ],
71
+ "$schema" : " https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
72
+ }
73
+
You can’t perform that action at this time.
0 commit comments