Skip to content

Commit

Permalink
Use new credentials format (#73)
Browse files Browse the repository at this point in the history
Summary:
This matches what we have over at Flipper:

https://github.com/facebook/flipper/blob/main/.github/workflows/publish-android.yml#L28

Pull Request resolved: #73

Test Plan: Next release

Reviewed By: lblasa

Differential Revision: D32596178

Pulled By: passy

fbshipit-source-id: c2465534b3a79f8add5f835ada22f7662a05448c
  • Loading branch information
passy authored and facebook-github-bot committed Nov 22, 2021
1 parent ebe4309 commit 34535fc
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,13 @@ jobs:
- name: Write GPG Sec Ring
run: echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > /tmp/secring.gpg
- name: Update gradle.properties
run: echo -e "signing.secretKeyRingFile=/tmp/secring.gpg\nsigning.keyId=${{ secrets.SIGNING_KEY_ID }}\nsigning.password=${{ secrets.SIGNING_PASSWORD }}" >> gradle.properties
run: echo -e "signing.secretKeyRingFile=/tmp/secring.gpg\nsigning.keyId=${{ secrets.SIGNING_KEY_ID }}\nsigning.password=${{ secrets.SIGNING_PASSWORD }}\nmavenCentralPassword=${{ secrets.SONATYPE_NEXUS_PASSWORD }}\nmavenCentralUsername=${{ secrets.SONATYPE_NEXUS_USERNAME }}" >> gradle.properties
- name: Upload Android Archives
run: ./gradlew assembleRelease uploadArchives --info
env:
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
- name: Upload Java-Only Archives
run: ./gradlew -b host.gradle assemble uploadArchives --info
env:
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
- name: Release and close
run: ./gradlew closeAndReleaseRepository
env:
SONATYPE_NEXUS_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
SONATYPE_NEXUS_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
- name: Clean secrets
if: always()
run: rm /tmp/secring.gpg

0 comments on commit 34535fc

Please sign in to comment.