Compare commits
14
Commits
934d6724f9
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25019c4247 | ||
|
|
9b10cd4795 | ||
|
|
5741cf5e63 | ||
|
|
cdd21c35cb | ||
|
|
9afac8fa94 | ||
|
|
02bcca07c3 | ||
|
|
9201e2e279 | ||
|
|
50ddbbd989 | ||
|
|
67ed6452c8 | ||
|
|
1b3128d312 | ||
|
|
f3381e8a81 | ||
|
|
f0b1ecbcd9 | ||
|
|
d81f4ba5a3 | ||
|
|
c72b07c208 |
@@ -42,8 +42,8 @@ jobs:
|
|||||||
- name: Grant execute permission
|
- name: Grant execute permission
|
||||||
run: chmod +x ./gradlew
|
run: chmod +x ./gradlew
|
||||||
|
|
||||||
- name: List Gradle Projects
|
# - name: List Gradle Projects
|
||||||
run: ./gradlew projects
|
# run: ./gradlew projects
|
||||||
|
|
||||||
- name: Build Android Debug APK
|
- name: Build Android Debug APK
|
||||||
run: ./gradlew :androidApp:assembleDebug --stacktrace
|
run: ./gradlew :androidApp:assembleDebug --stacktrace
|
||||||
@@ -56,7 +56,39 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -lah androidApp/build/outputs/apk/debug/
|
ls -lah androidApp/build/outputs/apk/debug/
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v4
|
# - uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: android-apk
|
# name: TorqueVault-apk
|
||||||
path: androidApp/build/outputs/apk/debug/androidApp-debug.apk
|
# path: androidApp/build/outputs/apk/debug/androidApp-debug.apk
|
||||||
|
|
||||||
|
- name: Build Package Version
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
VERSION_NAME=$(grep -R "versionName" androidApp/build.gradle.kts \
|
||||||
|
| head -1 \
|
||||||
|
| sed 's/.*"\(.*\)".*/\1/')
|
||||||
|
|
||||||
|
SHORT_SHA=$(git rev-parse --short HEAD)
|
||||||
|
|
||||||
|
PACKAGE_VERSION="${VERSION_NAME}+${SHORT_SHA}"
|
||||||
|
|
||||||
|
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
echo "Package Version: $PACKAGE_VERSION"
|
||||||
|
|
||||||
|
- name: Upload APK to Package Registry
|
||||||
|
run: |
|
||||||
|
curl \
|
||||||
|
--fail \
|
||||||
|
--user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
|
||||||
|
--upload-file androidApp/build/outputs/apk/debug/androidApp-debug.apk \
|
||||||
|
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/android-debug/${PACKAGE_VERSION}/Torque-Vault.apk"
|
||||||
|
|
||||||
|
- name: Upload APK to Package Registry
|
||||||
|
run: |
|
||||||
|
VERSION="latest"
|
||||||
|
curl \
|
||||||
|
--fail \
|
||||||
|
--user "${{ github.actor }}:${{ secrets.PACKAGE_TOKEN }}" \
|
||||||
|
--upload-file androidApp/build/outputs/apk/debug/androidApp-debug.apk \
|
||||||
|
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/android-debug/${VERSION}/Torque-Vault.apk"
|
||||||
|
|||||||
@@ -1,18 +0,0 @@
|
|||||||
name: Build and upload artifact apk
|
|
||||||
run-name: ${{ gitea.actor }} is testing build android
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
jobs:
|
|
||||||
upload:
|
|
||||||
runs-on: android
|
|
||||||
steps:
|
|
||||||
- name: "Create file"
|
|
||||||
run: echo "hello" > test.txt
|
|
||||||
|
|
||||||
- name: Upload Test Package
|
|
||||||
run: |
|
|
||||||
curl \
|
|
||||||
--fail \
|
|
||||||
--user "${{ github.actor }}:${{ secrets.GITEA_PACKAGE_TOKEN }}" \
|
|
||||||
--upload-file test.txt \
|
|
||||||
"${{ github.server_url }}/api/packages/${{ github.repository_owner }}/generic/test-package/${{ github.run_number }}/test.txt"
|
|
||||||
@@ -27,8 +27,8 @@ android {
|
|||||||
applicationId = "com.digitoolsolutions.app.tes_ci_cd"
|
applicationId = "com.digitoolsolutions.app.tes_ci_cd"
|
||||||
minSdk = libs.versions.android.minSdk.get().toInt()
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
||||||
targetSdk = libs.versions.android.targetSdk.get().toInt()
|
targetSdk = libs.versions.android.targetSdk.get().toInt()
|
||||||
versionCode = 1
|
versionCode = 2
|
||||||
versionName = "1.0"
|
versionName = "1.0.1"
|
||||||
}
|
}
|
||||||
packaging {
|
packaging {
|
||||||
resources {
|
resources {
|
||||||
|
|||||||
Reference in New Issue
Block a user