Add a Github Action to publish SNAPSHOTS after every commit.
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
This commit is contained in:
committed by
Facebook GitHub Bot
parent
9a0ba05d13
commit
1ab0c7b493
29
.github/workflows/publish-android-release.yml
vendored
Normal file
29
.github/workflows/publish-android-release.yml
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
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 }}
|
Reference in New Issue
Block a user