Setup publishing for Yoga stables
Summary: This sets up publishing for stable of Yoga whenever a git tag gets published. I also re-enabled Javadoc publishing as this is a requirement to hit Maven Central. Reviewed By: NickGerleman Differential Revision: D46522898 fbshipit-source-id: dc4b9139aed7aff27dce966bcee7b9b0cc4c6fe9
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a2832f4d55
commit
36e491754f
35
.github/workflows/publish-android-release.yml
vendored
35
.github/workflows/publish-android-release.yml
vendored
@@ -1,9 +1,9 @@
|
|||||||
name: Publish Android Release
|
name: Publish Android Release
|
||||||
|
|
||||||
on:
|
on:
|
||||||
release:
|
push:
|
||||||
types:
|
tags:
|
||||||
- created
|
- *
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -17,13 +17,24 @@ jobs:
|
|||||||
- name: Setup
|
- name: Setup
|
||||||
uses: ./.github/actions/setup-android
|
uses: ./.github/actions/setup-android
|
||||||
|
|
||||||
- name: Publish and release
|
- name: Publish to Maven Local
|
||||||
run: |
|
run: ./gradlew publishToMavenLocal
|
||||||
./gradlew :yoga:assembleRelease publish --info
|
|
||||||
./gradlew closeAndReleaseRepository
|
|
||||||
env:
|
env:
|
||||||
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
|
ORG_GRADLE_PROJECT_USE_SNAPSHOT: true
|
||||||
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
|
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
|
||||||
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY_CONTENTS }}
|
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
|
||||||
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
|
|
||||||
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
|
- name: Upload Build Artifacts
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: 'snapshot-artifacts'
|
||||||
|
path: '~/.m2/repository/'
|
||||||
|
|
||||||
|
- name: Publish to the Snapshot Repository
|
||||||
|
run: ./gradlew publishToSonatype
|
||||||
|
env:
|
||||||
|
ORG_GRADLE_PROJECT_SONATYPE_USERNAME: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_USERNAME }}
|
||||||
|
ORG_GRADLE_PROJECT_SONATYPE_PASSWORD: ${{ secrets.ORG_GRADLE_PROJECT_SONATYPE_PASSWORD }}
|
||||||
|
ORG_GRADLE_PROJECT_SIGNING_KEY: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_KEY }}
|
||||||
|
ORG_GRADLE_PROJECT_SIGNING_PWD: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_PWD }}
|
||||||
|
ORG_GRADLE_PROJECT_USE_SNAPSHOT: true
|
||||||
|
@@ -30,6 +30,7 @@ android {
|
|||||||
publishing {
|
publishing {
|
||||||
multipleVariants {
|
multipleVariants {
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
includeBuildTypeValues('debug', 'release')
|
includeBuildTypeValues('debug', 'release')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -38,9 +39,3 @@ android {
|
|||||||
dependencies {
|
dependencies {
|
||||||
api project(':yoga')
|
api project(':yoga')
|
||||||
}
|
}
|
||||||
|
|
||||||
// We don't build Javadoc at this time as we can't disable "BUCK" files
|
|
||||||
// from mistakenly getting parsed as Java.
|
|
||||||
tasks.withType(Javadoc).all {
|
|
||||||
enabled = false
|
|
||||||
}
|
|
||||||
|
@@ -50,6 +50,7 @@ android {
|
|||||||
publishing {
|
publishing {
|
||||||
multipleVariants {
|
multipleVariants {
|
||||||
withSourcesJar()
|
withSourcesJar()
|
||||||
|
withJavadocJar()
|
||||||
includeBuildTypeValues('debug', 'release')
|
includeBuildTypeValues('debug', 'release')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user