chore: Migrate from using setup-gradle:arguments
This commit is contained in:
parent
bcae99765a
commit
e4653a6b24
|
@ -27,9 +27,9 @@ jobs:
|
||||||
with:
|
with:
|
||||||
distribution: 'temurin'
|
distribution: 'temurin'
|
||||||
java-version: '17'
|
java-version: '17'
|
||||||
- name: "Check licenses"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Check licenses"
|
||||||
arguments: licensee
|
run: ./gradlew licensee
|
||||||
|
|
|
@ -33,12 +33,12 @@ jobs:
|
||||||
- name: "Move licenses"
|
- name: "Move licenses"
|
||||||
run: |
|
run: |
|
||||||
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
||||||
- name: "./gradlew :androidApp:assembleNoneRelease"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Build"
|
||||||
arguments: :androidApp:assembleNoneRelease
|
run: ./gradlew :androidApp:assembleNoneRelease
|
||||||
- name: 'Upload .apk'
|
- name: 'Upload .apk'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -32,12 +32,12 @@ jobs:
|
||||||
- name: "Move licenses"
|
- name: "Move licenses"
|
||||||
run: |
|
run: |
|
||||||
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
mv -f androidApp/build/reports/licensee/androidPlayStoreRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
||||||
- name: "Build release bundle"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Build"
|
||||||
arguments: :androidApp:bundlePlayStoreRelease
|
run: ./gradlew :androidApp:bundlePlayStoreRelease
|
||||||
- name: 'Upload .aab'
|
- name: 'Upload .aab'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -43,12 +43,12 @@ jobs:
|
||||||
echo "notarization_apple_id=${{ secrets.NOTARIZATION_APPLE_ID }}" >> gradle.properties
|
echo "notarization_apple_id=${{ secrets.NOTARIZATION_APPLE_ID }}" >> gradle.properties
|
||||||
echo "notarization_password=${{ secrets.NOTARIZATION_PASSWD }}" >> gradle.properties
|
echo "notarization_password=${{ secrets.NOTARIZATION_PASSWD }}" >> gradle.properties
|
||||||
echo "notarization_asc_provider=${{ secrets.NOTARIZATION_ASC_PROVIDER }}" >> gradle.properties
|
echo "notarization_asc_provider=${{ secrets.NOTARIZATION_ASC_PROVIDER }}" >> gradle.properties
|
||||||
- name: "./gradlew :desktopApp:packageDmg :desktopApp:notarizeDmg"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Build"
|
||||||
arguments: ":desktopApp:packageDmg :desktopApp:notarizeDmg"
|
run: ./gradlew :desktopApp:packageDmg :desktopApp:notarizeDmg
|
||||||
- name: 'Upload logs'
|
- name: 'Upload logs'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: always()
|
if: always()
|
||||||
|
@ -96,12 +96,12 @@ jobs:
|
||||||
pwd
|
pwd
|
||||||
git config --global --add safe.directory "$(pwd)"
|
git config --global --add safe.directory "$(pwd)"
|
||||||
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
|
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
|
||||||
- name: "./gradlew :desktopApp:bundleFlatpak"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Build"
|
||||||
arguments: ":desktopApp:bundleFlatpak"
|
run: ./gradlew :desktopApp:bundleFlatpak
|
||||||
- name: 'Upload .flatpak'
|
- name: 'Upload .flatpak'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -129,12 +129,12 @@ jobs:
|
||||||
- name: "Setup build env"
|
- name: "Setup build env"
|
||||||
run: |
|
run: |
|
||||||
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
|
python .github/setup_gradle_properties_release.py tag=${{ github.ref_name }}
|
||||||
- name: "./gradlew :desktopApp:packageMsi"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Build"
|
||||||
arguments: ":desktopApp:packageMsi"
|
run: ./gradlew :desktopApp:packageMsi
|
||||||
- name: 'Upload .msi'
|
- name: 'Upload .msi'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
@ -159,21 +159,17 @@ jobs:
|
||||||
echo ${{ secrets.KEYSTORE_PROPS_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.properties
|
echo ${{ secrets.KEYSTORE_PROPS_B64 }} | base64 -d | zcat >> androidApp/keyguard-release.properties
|
||||||
echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.json
|
echo ${{ secrets.GOOGLE_SERVICES }} | base64 -d | zcat >> androidApp/google-services.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"
|
- name: "Setup Gradle"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
uses: gradle/actions/setup-gradle@v3
|
||||||
env:
|
env:
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
||||||
with:
|
- name: "Check and Build licenses"
|
||||||
arguments: :androidApp:licenseeAndroidNoneRelease
|
run: ./gradlew androidApp:licenseeAndroidNoneRelease
|
||||||
- name: "Move licenses"
|
- name: "Move licenses"
|
||||||
run: |
|
run: |
|
||||||
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
mv -f androidApp/build/reports/licensee/androidNoneRelease/artifacts.json common/src/commonMain/composeResources/files/licenses.json
|
||||||
- name: "./gradlew :androidApp:assembleNoneRelease"
|
- name: "Build"
|
||||||
uses: gradle/actions/setup-gradle@v3
|
run: ./gradlew androidApp:assembleNoneRelease
|
||||||
env:
|
|
||||||
JAVA_HOME: ${{ steps.setup-java.outputs.path }}
|
|
||||||
with:
|
|
||||||
arguments: :androidApp:assembleNoneRelease
|
|
||||||
- name: 'Upload .apk'
|
- name: 'Upload .apk'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue