|
7 | 7 |
|
8 | 8 | jobs: |
9 | 9 | build-and-release: |
10 | | - name: Build and Publish Release |
| 10 | + name: Build and Publish Debug Artifact |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | permissions: |
13 | 13 | contents: write |
@@ -56,11 +56,11 @@ jobs: |
56 | 56 | - name: Make Gradle wrapper executable |
57 | 57 | run: chmod +x gradlew |
58 | 58 |
|
59 | | - - name: Build release artifacts (retry up to 3 times) |
| 59 | + - name: Build debug artifact (retry up to 3 times) |
60 | 60 | run: | |
61 | 61 | attempts=0 |
62 | 62 | until [ "$attempts" -ge 3 ]; do |
63 | | - if ./gradlew --no-daemon clean assembleRelease bundleRelease; then |
| 63 | + if ./gradlew --no-daemon clean assembleDebug; then |
64 | 64 | break |
65 | 65 | fi |
66 | 66 | attempts=$((attempts + 1)) |
@@ -88,38 +88,31 @@ jobs: |
88 | 88 | env: |
89 | 89 | VERSION_NAME: ${{ steps.version.outputs.version_name }} |
90 | 90 | run: | |
91 | | - APK_PATH=app/build/outputs/apk/release/app-release-unsigned.apk |
92 | | - AAB_PATH=app/build/outputs/bundle/release/app-release.aab |
| 91 | + APK_PATH=app/build/outputs/apk/debug/app-debug.apk |
93 | 92 | if [ ! -f "$APK_PATH" ]; then |
94 | 93 | echo "Expected APK not found at $APK_PATH" >&2 |
95 | 94 | find app/build/outputs -maxdepth 3 -type f || true |
96 | 95 | exit 1 |
97 | 96 | fi |
98 | | - if [ ! -f "$AAB_PATH" ]; then |
99 | | - echo "Expected AAB not found at $AAB_PATH" >&2 |
100 | | - find app/build/outputs -maxdepth 3 -type f || true |
101 | | - exit 1 |
102 | | - fi |
103 | 97 | mkdir -p artifacts |
104 | | - cp "$APK_PATH" "artifacts/AICoreChat-${VERSION_NAME}-unsigned.apk" |
105 | | - cp "$AAB_PATH" "artifacts/AICoreChat-${VERSION_NAME}.aab" |
| 98 | + cp "$APK_PATH" "artifacts/AICoreChat-${VERSION_NAME}-debug.apk" |
106 | 99 |
|
107 | 100 | - name: Publish GitHub release |
108 | 101 | uses: ncipollo/release-action@v1 |
109 | 102 | with: |
110 | 103 | token: ${{ secrets.GITHUB_TOKEN }} |
111 | | - tag: v${{ steps.version.outputs.version_name }}-build-${{ github.run_number }} |
112 | | - name: AICoreChat v${{ steps.version.outputs.version_name }} (build ${{ github.run_number }}) |
| 104 | + tag: v${{ steps.version.outputs.version_name }}-debug-build-${{ github.run_number }} |
| 105 | + name: AICoreChat v${{ steps.version.outputs.version_name }} Debug (build ${{ github.run_number }}) |
113 | 106 | body: | |
114 | 107 | ## Build Info |
115 | 108 | - Version: v${{ steps.version.outputs.version_name }} (code ${{ steps.version.outputs.version_code }}) |
116 | 109 | - Commit: ${{ github.sha }} |
117 | 110 | - Message: ${{ github.event.head_commit.message }} |
118 | 111 | - Triggered by: ${{ github.actor }} on `${{ github.ref_name }}` |
119 | 112 |
|
120 | | - _Generated automatically via GitHub Actions run ${{ github.run_id }}._ |
| 113 | + _Debug build generated automatically via GitHub Actions run ${{ github.run_id }}._ |
121 | 114 | draft: false |
122 | 115 | prerelease: false |
123 | | - makeLatest: true |
124 | | - artifacts: artifacts/AICoreChat-${{ steps.version.outputs.version_name }}-unsigned.apk,artifacts/AICoreChat-${{ steps.version.outputs.version_name }}.aab |
| 116 | + makeLatest: false |
| 117 | + artifacts: artifacts/AICoreChat-${{ steps.version.outputs.version_name }}-debug.apk |
125 | 118 | artifactContentType: application/octet-stream |
0 commit comments