0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-28 14:13:04 +00:00

Update compile-android.yml

This commit is contained in:
Kenny 2022-02-24 20:22:19 -05:00 committed by GitHub
parent 1838e26321
commit 554e077d5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,9 +1,32 @@
on: [push] name: Publish Native Android Library
name: Build Android App
uses: sparkfabrik/android-build-action@v1.0.0 on: workflow_dispatch
with: jobs:
project-path: android publish-android:
output-path: bettertube.apk runs-on: ubuntu-latest
browserstack-upload: false permissions:
browserstack-username: ${{ secrets.BROWSERSTACK_USERNAME }} contents: read
browserstack-access-key: ${{ secrets.BROWSERSTACK_ACCESS_KEY }} packages: write
steps:
- uses: actions/checkout@v2
with:
ref: native-publish
- name: set up JDK 11
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'zulu'
- name: Grant execute permission for gradlew
run: chmod +x ./android/gradlew
- name: Grant execute permission for publishing script
run: chmod +x ./scripts/publish-android.sh
- name: Run publish script
working-directory: ./scripts
env:
ANDROID_OSSRH_USERNAME: ${{ secrets.ANDROID_OSSRH_USERNAME }}
ANDROID_OSSRH_PASSWORD: ${{ secrets.ANDROID_OSSRH_PASSWORD }}
ANDROID_SIGNING_KEY_ID: ${{ secrets.ANDROID_SIGNING_KEY_ID }}
ANDROID_SIGNING_PASSWORD: ${{ secrets.ANDROID_SIGNING_PASSWORD }}
ANDROID_SIGNING_KEY: ${{ secrets.ANDROID_SIGNING_KEY }}
ANDROID_SONATYPE_STAGING_PROFILE_ID: ${{ secrets.ANDROID_SONATYPE_STAGING_PROFILE_ID }}
run: ./publish-android.sh