Skip to content

Commit 454afb6

Browse files
committed
chore: try to fix release asset not found issue in publish job
1 parent 57378f8 commit 454afb6

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ jobs:
5555
IDE_SIGNING_KEY_PASS: ${{ secrets.IDE_SIGNING_KEY_PASS }}
5656
IDE_SIGNING_STORE_PASS: ${{ secrets.IDE_SIGNING_STORE_PASS }}
5757
IDE_SIGNING_URL: ${{ secrets.IDE_SIGNING_URL }}
58+
- name: Copy debug APK
59+
if: ${{ github.ref != 'refs/heads/main' }}
60+
run: cp app/build/outputs/apk/debug/**.apk ./
5861
- name: Assemble Release
5962
if: ${{ github.ref == 'refs/heads/main' }}
6063
run: ./gradlew assembleRelease
@@ -66,18 +69,21 @@ jobs:
6669
IDE_SIGNING_KEY_PASS: ${{ secrets.IDE_SIGNING_KEY_PASS }}
6770
IDE_SIGNING_STORE_PASS: ${{ secrets.IDE_SIGNING_STORE_PASS }}
6871
IDE_SIGNING_URL: ${{ secrets.IDE_SIGNING_URL }}
72+
- name: Copy release APK
73+
if: ${{ github.ref == 'refs/heads/main' }}
74+
run: cp app/build/outputs/apk/release/**.apk ./
6975
- name: Upload Debug APK
7076
if: ${{ github.ref != 'refs/heads/main' }}
7177
uses: actions/upload-artifact@v3
7278
with:
7379
name: apk-debug
74-
path: app/build/outputs/apk/debug/**.apk
80+
path: app-debug.apk
7581
- name: Upload Release APK
7682
if: ${{ github.ref == 'refs/heads/main' }}
7783
uses: actions/upload-artifact@v3
7884
with:
7985
name: apk-release
80-
path: app/build/outputs/apk/release/**.apk
86+
path: app-release.apk
8187

8288
unit_test_debug:
8389
name: Run local tests

.nyx.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,4 @@ services:
6767
options:
6868
REPOSITORY_OWNER: "AndroidIDEOfficial"
6969
REPOSITORY_NAME: "AndroidIDE"
70-
AUTHENTICATION_TOKEN: "{{#environment.variable}}GH_TOKEN{{/environment.variable}}"
70+
AUTHENTICATION_TOKEN: "{{#environment.variable}}GH_TOKEN{{/environment.variable}}"

0 commit comments

Comments
 (0)