-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (26 loc) · 1.24 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: "Create release"
on:
push:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v2
- uses: actions/setup-java@v3
with:
distribution: 'temurin' # This is the Ubuntu Default
java-version: '17'
- name: Build library
env:
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGPASSWORD }}
ORG_GRADLE_PROJECT_signingKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNINGKEYID }}
run: 'bash ./gradlew clean :library:assembleRelease :library:signReleasePublication :library:signNoopPublication'
- name: Release library
env:
MOBILE_MAVENCENTRAL_USER: ${{ secrets.MOBILE_MAVENCENTRAL_USER }}
MOBILE_MAVENCENTRAL_PASSWORD: ${{ secrets.MOBILE_MAVENCENTRAL_PASSWORD }}
run: "bash ./gradlew publishReleasePublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.release.tag_name }} publishNoopPublicationToSonatypeRepository -DSNAPSHOT_VERSION=${{ github.event.release.tag_name }} --max-workers 1 closeAndReleaseStagingRepositories"