0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-08 04:25:07 +00:00
VueTube/.github/workflows/compile-android.yml

33 lines
1.1 KiB
YAML
Raw Normal View History

2022-02-25 01:22:19 +00:00
name: Publish Native Android Library
on: workflow_dispatch
jobs:
publish-android:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v2
with:
2022-02-25 01:32:19 +00:00
ref: main
2022-02-25 13:19:35 +00:00
- name: set up JDK 11
2022-02-25 01:22:19 +00:00
uses: actions/setup-java@v2
with:
2022-02-25 13:19:35 +00:00
java-version: '11'
2022-02-25 01:22:19 +00:00
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