-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (42 loc) · 1.33 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Release XMTP Android Package
on:
push:
branches:
- xmtp-legacy
jobs:
library:
name: Release Library
runs-on: ubuntu-latest
steps:
- name: Checkout project sources
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure JDK
uses: actions/setup-java@v4
with:
distribution: 'adopt'
java-version: '17'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Run build with Gradle Wrapper
run: ./gradlew build
- name: Tag version 0.16.4
run: |
git tag 0.16.4
git push origin 0.16.4
- name: Create a GitHub release for version 0.16.4
uses: ncipollo/release-action@v1
with:
tag: "0.16.4"
name: "Release 0.16.4"
body: "Patch release for inboxId and group fixes 0.16.4"
- name: Gradle Publish
env:
RELEASE_VERSION: "0.16.4"
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }}
SIGN_KEY: ${{ secrets.OSSRH_GPG_SECRET_KEY }}
SIGN_PASSWORD: ${{ secrets.OSSRH_GPG_SECRET_KEY_PASSWORD }}
MAVEN_PROFILE_ID: ${{ secrets.MAVEN_PROFILE_ID }}
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository