Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

Commit

Permalink
Update android.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linsui authored May 5, 2020
1 parent 821b625 commit 44d30b2
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
- name: set up Android
run: |
sudo apt-get --quiet update --yes
sudo apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
Expand All @@ -48,4 +48,23 @@ jobs:
set +o pipefail
yes | android-sdk-linux/tools/bin/sdkmanager --licenses
set -o pipefail
./gradlew assemble${VARIANT_CAP}${FLAVOUR_CAP}
- name: Build with Gradle
run: ./gradlew assemble${VARIANT_CAP}${FLAVOUR_CAP}
- name: Create Release
uses: actions/create-release@latest
id: create_release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: nightly
release_name: Nightly
- name: Upload Release Asset
id: upload-release-asset
uses: actions/upload-release-asset@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./build/outputs/apk/${VARIANT}/${FLAVOUR}/${APK_NAME}.apk
asset_name: ${APK_NAME}.apk
asset_content_type: application/apk

0 comments on commit 44d30b2

Please sign in to comment.