mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
fix: updating release workflow to account for the 32/64 bit builds and degoogled variant
This commit is contained in:
parent
e87b658447
commit
9f61d70fca
1 changed files with 51 additions and 11 deletions
62
.github/workflows/github_release.yml
vendored
62
.github/workflows/github_release.yml
vendored
|
|
@ -35,12 +35,18 @@ jobs:
|
||||||
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
|
echo "BUILD_TOOL_VERSION=$BUILD_TOOL_VERSION" >> $GITHUB_ENV
|
||||||
echo Last build tool version is: $BUILD_TOOL_VERSION
|
echo Last build tool version is: $BUILD_TOOL_VERSION
|
||||||
|
|
||||||
- name: Build APK
|
- name: Build All APKs
|
||||||
id: build
|
id: build
|
||||||
run: bash ./gradlew assembleTempoRelease
|
run: |
|
||||||
|
# Build release variants
|
||||||
|
bash ./gradlew assembleTempoRelease
|
||||||
|
bash ./gradlew assembleNotquitemyRelease
|
||||||
|
# Build debug variants
|
||||||
|
bash ./gradlew assembleTempoDebug
|
||||||
|
bash ./gradlew assembleNotquitemyDebug
|
||||||
|
|
||||||
- name: Sign APK
|
- name: Sign Tempo Release APKs
|
||||||
id: sign_apk
|
id: sign_tempo_release
|
||||||
uses: r0adkll/sign-android-release@v1
|
uses: r0adkll/sign-android-release@v1
|
||||||
with:
|
with:
|
||||||
releaseDirectory: app/build/outputs/apk/tempo/release
|
releaseDirectory: app/build/outputs/apk/tempo/release
|
||||||
|
|
@ -51,11 +57,17 @@ jobs:
|
||||||
env:
|
env:
|
||||||
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
|
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
|
||||||
|
|
||||||
- name: Make artifact
|
- name: Sign NotQuiteMy Release APKs
|
||||||
uses: actions/upload-artifact@v4
|
id: sign_notquitemy_release
|
||||||
|
uses: r0adkll/sign-android-release@v1
|
||||||
with:
|
with:
|
||||||
name: app-release-signed
|
releaseDirectory: app/build/outputs/apk/notquitemy/release
|
||||||
path: ${{steps.sign_apk.outputs.signedReleaseFile}}
|
signingKeyBase64: ${{ secrets.KEYSTORE_BASE64 }}
|
||||||
|
alias: ${{ secrets.KEY_ALIAS_GITHUB }}
|
||||||
|
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }}
|
||||||
|
keyPassword: ${{ secrets.KEY_PASSWORD_GITHUB }}
|
||||||
|
env:
|
||||||
|
BUILD_TOOLS_VERSION: ${{ env.BUILD_TOOL_VERSION }}
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
id: create_release
|
id: create_release
|
||||||
|
|
@ -67,12 +79,40 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
|
||||||
- name: Upload APK
|
- name: Upload Release APKs
|
||||||
uses: actions/upload-release-asset@v1
|
uses: actions/upload-release-asset@v1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ github.token }}
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
asset_path: ${{steps.sign_apk.outputs.signedReleaseFile}}
|
asset_path: ${{steps.sign_tempo_release.outputs.signedReleaseFile}}
|
||||||
asset_name: app-tempo-release.apk
|
asset_name: app-tempo-release.apk
|
||||||
asset_content_type: application/zip
|
asset_content_type: application/vnd.android.package-archive
|
||||||
|
|
||||||
|
- name: Upload NotQuiteMy Release APK
|
||||||
|
uses: actions/upload-release-asset@v1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ github.token }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||||
|
asset_path: ${{steps.sign_notquitemy_release.outputs.signedReleaseFile}}
|
||||||
|
asset_name: app-notquitemy-release.apk
|
||||||
|
asset_content_type: application/vnd.android.package-archive
|
||||||
|
|
||||||
|
- name: Upload Debug APKs as artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: debug-apks
|
||||||
|
path: |
|
||||||
|
app/build/outputs/apk/tempo/debug/
|
||||||
|
app/build/outputs/apk/notquitemy/debug/
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
|
- name: Upload Release APKs as artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: release-apks
|
||||||
|
path: |
|
||||||
|
${{steps.sign_tempo_release.outputs.signedReleaseFile}}
|
||||||
|
${{steps.sign_notquitemy_release.outputs.signedReleaseFile}}
|
||||||
|
retention-days: 30
|
||||||
Loading…
Add table
Add a link
Reference in a new issue