Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 14 additions & 7 deletions .github/workflows/android-branch_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ jobs:
build:
name: Build, Sign & Upload
runs-on: ubuntu-latest
env:
KEY_STORE_FILE: ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

steps:
- name: Checkout project
uses: actions/[email protected]
Expand All @@ -39,7 +33,20 @@ jobs:
- name: Stop Gradle daemons
run: ./gradlew --stop

- name: Decode keystore
id: write_base64_file
uses: Swisyn/[email protected]
with:
destinationFileName: 'mLauncher.jks'
destinationPath: 'app'
encodedString: ${{ secrets.SIGNINGKEY_BASE64 }}

- name: Build with Gradle
run: ./gradlew clean assembleProdDebug --refresh-dependencies --no-daemon
env:
JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2"
JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2"
KEY_STORE_FILE: ${{ steps.write_base64_file.outputs.filePath }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

21 changes: 14 additions & 7 deletions .github/workflows/android-pr_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
build:
name: Build, Sign & Upload
runs-on: ubuntu-latest
env:
KEY_STORE_FILE: ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

steps:
- name: Checkout project
uses: actions/[email protected]
Expand All @@ -37,7 +31,20 @@ jobs:
- name: Stop Gradle daemons
run: ./gradlew --stop

- name: Decode keystore
id: write_base64_file
uses: Swisyn/[email protected]
with:
destinationFileName: 'mLauncher.jks'
destinationPath: 'app'
encodedString: ${{ secrets.SIGNINGKEY_BASE64 }}

- name: Build with Gradle
run: ./gradlew clean assembleProdDebug --refresh-dependencies --no-daemon
env:
JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2"
JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2"
KEY_STORE_FILE: ${{ steps.write_base64_file.outputs.filePath }}
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

18 changes: 12 additions & 6 deletions .github/workflows/android-release_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ jobs:
name: Build, Sign & Release
if: "!startsWith(github.ref_name, 'nightly')"
runs-on: ubuntu-latest
env:
KEY_STORE_FILE: ${{ secrets.SIGNINGKEY_BASE64 }} # optional if using a file from env
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

steps:
- name: Checkout project
uses: actions/[email protected]
Expand All @@ -37,10 +31,22 @@ jobs:
- name: Stop Gradle daemons
run: ./gradlew --stop

- name: Decode keystore
id: write_base64_file
uses: Swisyn/[email protected]
with:
destinationFileName: 'mLauncher.jks'
destinationPath: 'app'
encodedString: ${{ secrets.SIGNINGKEY_BASE64 }}

- name: Build
run: ./gradlew clean assembleProdRelease --refresh-dependencies --no-daemon && ./gradlew clean bundleProdRelease --refresh-dependencies --no-daemon
env:
JAVA_TOOL_OPTIONS: "-Dhttps.protocols=TLSv1.2"
KEY_STORE_FILE: ${{ steps.write_base64_file.outputs.filePath }}
KEY_STORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}

- name: Release to GitHub
uses: svenstaro/[email protected]
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ jobs:
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }}
KEY_ALIAS: ${{ secrets.KEY_ALIAS }}
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }}


- name: Extract Version
id: extract_version
Expand All @@ -79,7 +78,7 @@ jobs:
- name: Rename files
run: |
mkdir -p ./build/release/
mv app/build/outputs/apk/nightlyRelease/*.apk ./build/release/mLauncher-Nightly-Signed.apk
mv app/build/outputs/apk/nightly/release/*.apk ./build/release/mLauncher-Nightly-Signed.apk
shell: bash

- name: Create and Upload Release
Expand Down
Loading