mirror of
https://github.com/xoureldeen/Vectras-VM-Android.git
synced 2026-04-29 14:59:50 +00:00
Update android.yml
This commit is contained in:
parent
04e1a76337
commit
a3e0f36de4
1 changed files with 12 additions and 5 deletions
17
.github/workflows/android.yml
vendored
17
.github/workflows/android.yml
vendored
|
|
@ -50,26 +50,32 @@ jobs:
|
|||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Download APK Artifact
|
||||
uses: actions/download-artifact@v3
|
||||
with:
|
||||
name: app-release.apk
|
||||
path: ./ # Download to the current working directory
|
||||
|
||||
- name: Create Release
|
||||
id: create_release
|
||||
uses: actions/create-release@v1
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
|
||||
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }} # Ensure you have the PAT_TOKEN secret set
|
||||
with:
|
||||
tag_name: ${{ github.event.inputs.release_tag }}
|
||||
release_name: Release ${{ github.event.inputs.release_tag }}
|
||||
body: ${{ github.event.inputs.release_notes }}
|
||||
draft: false
|
||||
prerelease: false
|
||||
|
||||
|
||||
- name: Upload APK to release
|
||||
uses: actions/upload-release-asset@v1
|
||||
with:
|
||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
||||
asset_path: app/build/outputs/apk/release/app-release.apk # Corrected path
|
||||
asset_path: ./app-release.apk # Use the correct path for the downloaded APK
|
||||
asset_name: app-release.apk
|
||||
asset_content_type: application/vnd.android.package-archive
|
||||
|
||||
|
||||
- name: Upload vectras-vm-arm64-v8a.tar.gz to release
|
||||
uses: actions/upload-release-asset@v1
|
||||
with:
|
||||
|
|
@ -77,7 +83,7 @@ jobs:
|
|||
asset_path: vectras-vm-arm64-v8a.tar.gz
|
||||
asset_name: vectras-vm-arm64-v8a.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
||||
|
||||
- name: Upload vectras-vm-x86_64.tar.gz to release
|
||||
uses: actions/upload-release-asset@v1
|
||||
with:
|
||||
|
|
@ -85,3 +91,4 @@ jobs:
|
|||
asset_path: vectras-vm-x86_64.tar.gz
|
||||
asset_name: vectras-vm-x86_64.tar.gz
|
||||
asset_content_type: application/gzip
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue