From 6cdb7a1e2be5f22584a30fce7ca3ac35f5994f54 Mon Sep 17 00:00:00 2001 From: sanjay7178 Date: Thu, 22 Aug 2024 19:31:10 +0530 Subject: [PATCH] Refactor workflow files for Android, Linux, and Windows builds --- .github/workflows/android.yml | 11 ++++++----- .github/workflows/linux.yml | 4 ++-- .github/workflows/windows.yml | 4 ++-- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 426bc7f..168afbd 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -53,19 +53,20 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} draft: false prerelease: false - - name: Upload Android Release Assets + + - name: Upload signed apk uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: ./android/android/${{ env.APP_NAME }}.apk - asset_name: ${{ env.APP_NAME }}-android-all.apk + asset_path: app/build/outputs/apk/release/vtop_ap_${{ github.ref_name }}.apk + asset_name: vtop_ap_${{ github.ref_name }}.apk asset_content_type: application/vnd.android.package-archive \ No newline at end of file diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index b3fe95b..58d4b2e 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -43,7 +43,7 @@ jobs: id: create_release uses: actions/create-release@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: tag_name: ${{ github.ref }} release_name: Release ${{ github.ref }} @@ -53,7 +53,7 @@ jobs: - name: Upload Linux Release Asset uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: upload_url: ${{ steps.create_release.outputs.upload_url }} asset_path: ./linux/tmp.tar.xz diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 02a08c7..a757b3a 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -46,12 +46,12 @@ jobs: id: get_release uses: bruceadams/get-release@v1.2.3 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} - name: Upload Windows Release Asset uses: actions/upload-release-asset@v1 env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.TOKEN }} with: upload_url: ${{ steps.get_release.outputs.upload_url }} asset_path: ./${{ env.APP_NAME }}.exe