Summary: I accidentally mixed the secret name for publishing to sonatype. The correct values are `SONATYPE_USERNAME` and `SONATYPE_PASSWORD`. After this snapshot publishing should be green. Reviewed By: NickGerleman Differential Revision: D46522897 fbshipit-source-id: 3ebb5bf5be32a7bbac1fefc9ed46c49be15bd56c
37 lines
937 B
YAML
37 lines
937 B
YAML
name: Publish Android Snapshot
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
name: Publish Snapshot
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup
|
|
uses: ./.github/actions/setup-android
|
|
|
|
- name: Publish to Maven Local
|
|
run: ./gradlew publishToMavenLocal
|
|
env:
|
|
ORG_GRADLE_PROJECT_USE_SNAPSHOT: true
|
|
|
|
- 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_USE_SNAPSHOT: true
|