88jobs :
99 release-github :
1010 name : Create GitHub release
11- runs-on : ubuntu-latest
11+ permissions :
12+ contents : write
13+ runs-on : ubuntu-22.04
1214 environment : foss-production
1315 steps :
1416 - name : Decode Keystore
@@ -21,25 +23,22 @@ jobs:
2123 echo $ENCODED_KEYSTORE | base64 -di > "${TMP_KEYSTORE_FILE_PATH}"
2224 echo "STORE_PATH=$(echo $TMP_KEYSTORE_FILE_PATH)" >> $GITHUB_ENV
2325
24- - name : Checkout
25- uses : actions/checkout@v3
26+ - name : Checkout source code
27+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2628 with :
2729 fetch-depth : 0
2830
31+ - name : Setup project and build environment
32+ uses : ./.github/actions/common-setup
33+
2934 - name : Get the version
3035 id : tagger
31- uses : jimschubert/query-tag-action@v2
36+ uses : jimschubert/query-tag-action@0b288a5fff630fea2e96d61b99047ed823ca19dc # v2.2
3237 with :
3338 skip-unshallow : ' true'
3439 abbrev : false
3540 commit-ish : HEAD
3641
37- - name : Install JDK ${{ matrix.java_version }}
38- uses : actions/setup-java@v3
39- with :
40- distribution : ' adopt'
41- java-version : 17
42-
4342 - name : Assemble beta APK
4443 if : contains(steps.tagger.outputs.tag, '-beta')
4544 run : ./gradlew assembleFossBeta
6059
6160 - name : Create pre-release
6261 if : contains(steps.tagger.outputs.tag, '-beta')
63- uses : softprops/action-gh-release@v1
62+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
6463 with :
6564 prerelease : true
6665 tag_name : ${{ steps.tagger.outputs.tag }}
@@ -74,21 +73,19 @@ jobs:
7473
7574 - name : Create release
7675 if : " !contains(steps.tagger.outputs.tag, '-beta')"
77- uses : softprops/action-gh-release@v1
76+ uses : softprops/action-gh-release@c95fe1489396fe8a9eb87c0abf8aa5b2ef267fda # v2.2.1
7877 with :
7978 prerelease : false
8079 tag_name : ${{ steps.tagger.outputs.tag }}
8180 name : ${{ steps.tagger.outputs.tag }}
8281 generate_release_notes : true
83- files : |
84- app/build/outputs/apk/foss/release/*.apk
85- app-wear/build/outputs/apk/foss/release/*.apk
82+ files : app/build/outputs/apk/foss/release/*.apk
8683 env :
8784 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8885
8986 release-gplay :
9087 name : Create Google Play release
91- runs-on : ubuntu-latest
88+ runs-on : ubuntu-22.04
9289 environment : gplay-production
9390 steps :
9491 - name : Decode Keystore
@@ -111,29 +108,26 @@ jobs:
111108 echo $ENCODED_SERVICE_KEY | base64 -di > "${TMP_SERVICEKEY_FILE_PATH}"
112109 echo "SUPPLY_JSON_KEY=$(echo $TMP_SERVICEKEY_FILE_PATH)" >> $GITHUB_ENV
113110
114- - name : Checkout
115- uses : actions/checkout@v3
111+ - name : Checkout source code
112+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
116113 with :
117114 fetch-depth : 0
118115
116+ - name : Setup project and build environment
117+ uses : ./.github/actions/common-setup
118+
119119 - name : Get the version
120120 id : tagger
121- uses : jimschubert/query-tag-action@v2
121+ uses : jimschubert/query-tag-action@0b288a5fff630fea2e96d61b99047ed823ca19dc # v2.2
122122 with :
123123 skip-unshallow : ' true'
124124 abbrev : false
125125 commit-ish : HEAD
126126
127- - name : Install JDK ${{ matrix.java_version }}
128- uses : actions/setup-java@v3
129- with :
130- distribution : ' adopt'
131- java-version : 17
132-
133127 - name : Set up ruby env
134- uses : ruby/setup-ruby@v1
128+ uses : ruby/setup-ruby@354a1ad156761f5ee2b7b13fa8e09943a5e8d252 # v1.229.0
135129 with :
136- ruby-version : 2.7 .6
130+ ruby-version : 3.3 .6
137131 bundler-cache : true
138132
139133 # - name: Assemble WearOS beta and upload to Google Play
0 commit comments