Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

Commit

Permalink
chore: try to fix release asset not found issue in publish job
Browse files Browse the repository at this point in the history
  • Loading branch information
itsaky committed Jan 7, 2023
1 parent 57378f8 commit 454afb6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ jobs:
IDE_SIGNING_KEY_PASS: ${{ secrets.IDE_SIGNING_KEY_PASS }}
IDE_SIGNING_STORE_PASS: ${{ secrets.IDE_SIGNING_STORE_PASS }}
IDE_SIGNING_URL: ${{ secrets.IDE_SIGNING_URL }}
- name: Copy debug APK
if: ${{ github.ref != 'refs/heads/main' }}
run: cp app/build/outputs/apk/debug/**.apk ./
- name: Assemble Release
if: ${{ github.ref == 'refs/heads/main' }}
run: ./gradlew assembleRelease
Expand All @@ -66,18 +69,21 @@ jobs:
IDE_SIGNING_KEY_PASS: ${{ secrets.IDE_SIGNING_KEY_PASS }}
IDE_SIGNING_STORE_PASS: ${{ secrets.IDE_SIGNING_STORE_PASS }}
IDE_SIGNING_URL: ${{ secrets.IDE_SIGNING_URL }}
- name: Copy release APK
if: ${{ github.ref == 'refs/heads/main' }}
run: cp app/build/outputs/apk/release/**.apk ./
- name: Upload Debug APK
if: ${{ github.ref != 'refs/heads/main' }}
uses: actions/upload-artifact@v3
with:
name: apk-debug
path: app/build/outputs/apk/debug/**.apk
path: app-debug.apk
- name: Upload Release APK
if: ${{ github.ref == 'refs/heads/main' }}
uses: actions/upload-artifact@v3
with:
name: apk-release
path: app/build/outputs/apk/release/**.apk
path: app-release.apk

unit_test_debug:
name: Run local tests
Expand Down
2 changes: 1 addition & 1 deletion .nyx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ services:
options:
REPOSITORY_OWNER: "AndroidIDEOfficial"
REPOSITORY_NAME: "AndroidIDE"
AUTHENTICATION_TOKEN: "{{#environment.variable}}GH_TOKEN{{/environment.variable}}"
AUTHENTICATION_TOKEN: "{{#environment.variable}}GH_TOKEN{{/environment.variable}}"

0 comments on commit 454afb6

Please sign in to comment.