Summary: I'm adding this action which will setup publishing of `-SNAPSHOT` version after every commit to main. Reviewed By: mdvacca Differential Revision: D46330012 fbshipit-source-id: 8d9f32a357f157a8f2e05c88074befd8dd871c94
30 lines
884 B
YAML
30 lines
884 B
YAML
name: Publish Android Release
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish to Maven Central
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-android
|
|
|
|
- name: Publish and release
|
|
run: |
|
|
./gradlew :yoga:assembleRelease publish --info
|
|
./gradlew closeAndReleaseRepository
|
|
env:
|
|
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
|
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
|
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
|