-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4799ab
commit 5af61ff
Showing
3 changed files
with
26 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,20 +25,20 @@ jobs: | |
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Write sign info | ||
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main' && github.repository == 'Super12138/ToDo' | ||
run: | | ||
if [ ! -z "${{ secrets.SIGNING_KEY }}" ]; then | ||
echo releaseStorePassword='${{ secrets.KEY_STORE_PASSWORD }}' >> gradle.properties | ||
echo releaseKeyAlias='${{ secrets.ALIAS }}' >> gradle.properties | ||
echo releaseKeyPassword='${{ secrets.KEY_PASSWORD }}' >> gradle.properties | ||
echo releaseStoreFile='${{ github.workspace }}/key.jks' >> gradle.properties | ||
echo ${{ secrets.SIGNING_KEY }} | base64 --decode > ${{ github.workspace }}/key.jks | ||
fi | ||
- name: Build with Gradle | ||
run: ./gradlew assembleRelease | ||
|
||
- uses: ilharp/sign-android-release@nightly | ||
name: Sign APK | ||
id: sign_app | ||
with: | ||
releaseDir: app/build/outputs/apk/release | ||
signingKey: ${{ secrets.ANDROID_SIGNING_KEY }} | ||
keyAlias: ${{ secrets.ANDROID_KEY_ALIAS }} | ||
keyStorePassword: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.ANDROID_KEY_PASSWORD }} | ||
buildToolsVersion: 33.0.0 | ||
|
||
- name: Upload APK | ||
uses: actions/[email protected] | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters