Skip to content

Commit 8a65d8b

Browse files
passyfacebook-github-bot
authored andcommitted
Release GitHub actions workflow (#1088)
Summary: Pull Request resolved: #1088 Reviewed By: mweststrate Differential Revision: D28604872 Pulled By: passy fbshipit-source-id: e77578d44557420be9b782dc90f047af697b7cb9
1 parent 0fcef77 commit 8a65d8b

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/release.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v1
16+
- name: set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
- name: Install dependencies
21+
run: source scripts/android-setup.sh && installAndroidSDK
22+
- name: Write GPG Sec Ring
23+
run: echo '${{ secrets.GPG_KEY_CONTENTS }}' | base64 -d > /tmp/secring.gpg
24+
- name: Update gradle.properties
25+
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
26+
- name: Upload Android Archives
27+
run: ./gradlew :yoga:assembleRelease publish --info
28+
- name: Release and close
29+
run: ./gradlew closeAndReleaseRepository
30+
- name: Clean secrets
31+
if: always()
32+
run: rm /tmp/secring.gpg

0 commit comments

Comments
 (0)