mirror of
https://github.com/RoboSats/robosats.git
synced 2025-09-13 00:56:22 +00:00
Fix workflow
This commit is contained in:
77
.github/workflows/android-build.yml
vendored
77
.github/workflows/android-build.yml
vendored
@ -97,94 +97,33 @@ jobs:
|
|||||||
|
|
||||||
# Create artifacts (only for Release)
|
# Create artifacts (only for Release)
|
||||||
# Create app-universal-release APK artifact asset for Release
|
# Create app-universal-release APK artifact asset for Release
|
||||||
- name: 'Upload universal .apk Release Artifact (for Release)'
|
- name: 'Upload universal .apk Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: inputs.semver != '' # If this workflow is called from release.yml
|
if: inputs.semver != '' # If this workflow is called from release.yml
|
||||||
with:
|
with:
|
||||||
name: robosats-${{ inputs.semver }}-universal.apk
|
name: robosats-${{ inputs.semver }}-universal.apk
|
||||||
path: android/app/build/outputs/apk/release/app-universal-release.apk
|
path: android/app/build/outputs/apk/release/app-universal-release-unsigned-signed.apk
|
||||||
|
|
||||||
# Create app-arm64-v8a-release APK artifact asset for Release
|
# Create app-arm64-v8a-release APK artifact asset for Release
|
||||||
- name: 'Upload arm64-v8a .apk Release Artifact (for Release)'
|
- name: 'Upload arm64-v8a .apk Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: inputs.semver != '' # If this workflow is called from release.yml
|
if: inputs.semver != '' # If this workflow is called from release.yml
|
||||||
with:
|
with:
|
||||||
name: robosats-${{ inputs.semver }}-arm64-v8a.apk
|
name: robosats-${{ inputs.semver }}-arm64-v8a.apk
|
||||||
path: android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
|
path: android/app/build/outputs/apk/release/app-arm64-v8a-release-unsigned-signed.apk
|
||||||
|
|
||||||
# Create app-armeabi-v7a-release APK artifact asset for Release
|
# Create app-armeabi-v7a-release APK artifact asset for Release
|
||||||
- name: 'Upload armeabi-v7a .apk Release Artifact (for Release)'
|
- name: 'Upload armeabi-v7a .apk Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: inputs.semver != '' # If this workflow is called from release.yml
|
if: inputs.semver != '' # If this workflow is called from release.yml
|
||||||
with:
|
with:
|
||||||
name: robosats-${{ inputs.semver }}-armeabi-v7a.apk
|
name: robosats-${{ inputs.semver }}-armeabi-v7a.apk
|
||||||
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk
|
path: android/app/build/outputs/apk/release/app-armeabi-v7a-release-unsigned-signed.apk
|
||||||
|
|
||||||
# Create app-x86_64-release APK artifact asset for Release
|
# Create app-x86_64-release APK artifact asset for Release
|
||||||
- name: 'Upload x86_64 .apk Release Artifact (for Release)'
|
- name: 'Upload x86_64 .apk Artifact'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
if: inputs.semver != '' # If this workflow is called from release.yml
|
if: inputs.semver != '' # If this workflow is called from release.yml
|
||||||
with:
|
with:
|
||||||
name: robosats-${{ inputs.semver }}-x86_64.apk
|
name: robosats-${{ inputs.semver }}-x86_64.apk
|
||||||
path: android/app/build/outputs/apk/release/app-x86_64-release.apk
|
path: android/app/build/outputs/apk/release/app-x86_64-release-unsigned-signed.apk
|
||||||
|
|
||||||
- name: 'Create Pre-release'
|
|
||||||
id: create_release
|
|
||||||
if: inputs.semver == ''
|
|
||||||
uses: ncipollo/release-action@v1.18.0
|
|
||||||
with:
|
|
||||||
tag: android-${{ steps.commit.outputs.short }}
|
|
||||||
name: robosats-android-${{ steps.commit.outputs.short }}
|
|
||||||
prerelease: true
|
|
||||||
|
|
||||||
# Upload universal APK to pre-release
|
|
||||||
- name: 'Upload universal Pre-release APK Asset'
|
|
||||||
id: upload-release-universal-apk-asset
|
|
||||||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: android/app/build/outputs/apk/release/app-universal-release.apk
|
|
||||||
asset_name: robosats-${{ steps.commit.outputs.short }}-universal.apk
|
|
||||||
asset_content_type: application/apk
|
|
||||||
|
|
||||||
# Upload arm64-v8a APK to pre-release
|
|
||||||
- name: 'Upload arm64-v8a Pre-release APK Asset'
|
|
||||||
id: upload-release-arm64-v8a-apk-asset
|
|
||||||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: android/app/build/outputs/apk/release/app-arm64-v8a-release.apk
|
|
||||||
asset_name: robosats-${{ steps.commit.outputs.short }}-arm64-v8a.apk
|
|
||||||
asset_content_type: application/apk
|
|
||||||
|
|
||||||
# Upload armeabi-v7a APK to pre-release
|
|
||||||
- name: 'Upload armeabi-v7a Pre-release APK Asset'
|
|
||||||
id: upload-release-armeabi-v7a-apk-asset
|
|
||||||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: android/app/build/outputs/apk/release/app-armeabi-v7a-release.apk
|
|
||||||
asset_name: robosats-${{ steps.commit.outputs.short }}-armeabi-v7a.apk
|
|
||||||
asset_content_type: application/apk
|
|
||||||
|
|
||||||
# Upload x86_64 APK to pre-release
|
|
||||||
- name: 'Upload x86_64 Pre-release APK Asset'
|
|
||||||
id: upload-release-x86_64-apk-asset
|
|
||||||
if: inputs.semver == '' # only if this workflow is not called from a push to tag (a Release)
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
||||||
asset_path: android/app/build/outputs/apk/release/app-x86_64-release.apk
|
|
||||||
asset_name: robosats-${{ steps.commit.outputs.short }}-x86_64.apk
|
|
||||||
asset_content_type: application/apk
|
|
||||||
Reference in New Issue
Block a user