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

Commit 44d30b2

Browse files
authored
Update android.yml
1 parent 821b625 commit 44d30b2

1 file changed

Lines changed: 21 additions & 2 deletions

File tree

.github/workflows/android.yml

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/setup-java@v1
3333
with:
3434
java-version: 1.8
35-
- name: Build with Gradle
35+
- name: set up Android
3636
run: |
3737
sudo apt-get --quiet update --yes
3838
sudo apt-get --quiet install --yes wget tar unzip lib32stdc++6 lib32z1
@@ -48,4 +48,23 @@ jobs:
4848
set +o pipefail
4949
yes | android-sdk-linux/tools/bin/sdkmanager --licenses
5050
set -o pipefail
51-
./gradlew assemble${VARIANT_CAP}${FLAVOUR_CAP}
51+
- name: Build with Gradle
52+
run: ./gradlew assemble${VARIANT_CAP}${FLAVOUR_CAP}
53+
- name: Create Release
54+
uses: actions/create-release@latest
55+
id: create_release
56+
env:
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
58+
with:
59+
tag_name: nightly
60+
release_name: Nightly
61+
- name: Upload Release Asset
62+
id: upload-release-asset
63+
uses: actions/upload-release-asset@latest
64+
env:
65+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
66+
with:
67+
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
68+
asset_path: ./build/outputs/apk/${VARIANT}/${FLAVOUR}/${APK_NAME}.apk
69+
asset_name: ${APK_NAME}.apk
70+
asset_content_type: application/apk

0 commit comments

Comments
 (0)