chore: Migrate to setup-gradle-v4

This commit is contained in:
Artem Chepurnyi 2024-08-08 07:32:06 +03:00
parent a4bba93f8c
commit 58991132df
2 changed files with 10 additions and 18 deletions

View File

@ -24,19 +24,15 @@ jobs:
echo "" >> gradle.properties echo "" >> gradle.properties
echo "versionRef=$(git rev-parse --short HEAD)" >> gradle.properties echo "versionRef=$(git rev-parse --short HEAD)" >> gradle.properties
echo buildkonfig.flavor=release >> gradle.properties echo buildkonfig.flavor=release >> gradle.properties
- name: "Check and Build licenses"
uses: gradle/actions/setup-gradle@v4
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
with:
arguments: :androidApp:licenseeAndroidNoneRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
- name: "Setup Gradle" - name: "Setup Gradle"
uses: gradle/actions/setup-gradle@v4 uses: gradle/actions/setup-gradle@v4
env: env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }} JAVA_HOME: ${{ steps.setup-java.outputs.path }}
- name: "Check and Build licenses"
run: ./gradlew :androidApp:licenseeAndroidNoneRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
- name: "Build" - name: "Build"
run: ./gradlew :androidApp:assembleNoneRelease run: ./gradlew :androidApp:assembleNoneRelease
- name: 'Upload .apk' - name: 'Upload .apk'

View File

@ -23,19 +23,15 @@ jobs:
echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json
echo ${{ secrets.SERVICE_ACCOUNT_B64 }} | base64 -d | zcat >> service-account-google.json echo ${{ secrets.SERVICE_ACCOUNT_B64 }} | base64 -d | zcat >> service-account-google.json
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }} python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
- name: "Check and Build licenses"
uses: gradle/actions/setup-gradle@v4
env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
with:
arguments: :androidApp:licenseeAndroidPlayStoreRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
- name: "Setup Gradle" - name: "Setup Gradle"
uses: gradle/actions/setup-gradle@v4 uses: gradle/actions/setup-gradle@v4
env: env:
JAVA_HOME: ${{ steps.setup-java.outputs.path }} JAVA_HOME: ${{ steps.setup-java.outputs.path }}
- name: "Check and Build licenses"
run: ./gradlew :androidApp:licenseeAndroidPlayStoreRelease
- name: "Move licenses"
run: |
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
- name: "Build" - name: "Build"
run: ./gradlew :androidApp:bundlePlayStoreRelease run: ./gradlew :androidApp:bundlePlayStoreRelease
- name: 'Upload .aab' - name: 'Upload .aab'