14
14
- name : Setup Java
15
15
uses : actions/setup-java@v1
16
16
with :
17
- java-version : 11 .x
17
+ java-version : 17 .x
18
18
19
19
- name : Setup Ruby
20
20
uses : ruby/setup-ruby@v1
25
25
uses : subosito/flutter-action@v1
26
26
with :
27
27
channel : ' stable'
28
- flutter-version : ' 3.0 .x'
28
+ flutter-version : ' 3.7 .x'
29
29
30
30
- name : Decrypt config files
31
31
run : |
@@ -46,11 +46,10 @@ jobs:
46
46
run : flutter pub get
47
47
48
48
- name : Extract version information
49
- id : get_version
50
49
run : |
51
- echo ::set-output name= VERSION_V:: $(echo $GITHUB_REF | cut -d / -f 3)
52
- echo ::set-output name= VERSION:: $(echo $GITHUB_REF | cut -d / -f 3 | cut -c 2-)
53
- echo ::set-output name= BUILD:: $(flutter pub run cider version | cut -d '+' -f 2)
50
+ echo " VERSION_V= $(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_ENV
51
+ echo " VERSION= $(echo $GITHUB_REF | cut -d / -f 3 | cut -c 2-)" >> $GITHUB_ENV
52
+ echo " BUILD= $(flutter pub run cider version | cut -d '+' -f 2)" >> $GITHUB_ENV
54
53
55
54
# Note: the original tag that triggered the workflow is in the form vX.Y.Z
56
55
# but the pubspec.yaml is committed in the commit after that one.
@@ -61,30 +60,30 @@ jobs:
61
60
# one without the v and push it.
62
61
- name : Bump version
63
62
run : |
64
- flutter pub run cider version ${{ steps.get_version.outputs. VERSION }}+${{ steps.get_version.outputs .BUILD }}
63
+ flutter pub run cider version ${{ env. VERSION }}+${{ env .BUILD }}
65
64
flutter pub run cider bump build
66
65
67
66
git config user.name Github-actions
68
67
git config user.email [email protected]
69
68
git add .
70
69
git commit -m "Bump version to $( flutter pub run cider version )"
71
- git tag ${{ steps.get_version.outputs .VERSION }}
70
+ git tag ${{ env .VERSION }}
72
71
git push origin HEAD:master --tags
73
- git push origin --delete ${{ steps.get_version.outputs .VERSION_V }}
72
+ git push origin --delete ${{ env .VERSION_V }}
74
73
75
74
- name : Build AAB
76
75
run : flutter build appbundle --release
77
76
env :
78
77
WGER_API_KEY : ${{ secrets.WGER_API_KEY }}
79
78
80
79
- name : Upload build to Play Store
81
- uses : maierj/fastlane-action@v2.1.0
80
+ uses : maierj/fastlane-action@v2.2.1
82
81
with :
83
82
lane : production
84
83
85
84
- name : Make Github release
86
85
uses : softprops/action-gh-release@v1
87
86
with :
88
87
files : build/app/outputs/bundle/release/app-release.aab
89
- tag_name : ${{ steps.get_version.outputs .VERSION }}
88
+ tag_name : ${{ env .VERSION }}
90
89
body_path : CHANGELOG.md
0 commit comments