List of inbox states for inbox ids (#324) #137
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release XMTP Android Package | |
on: | |
push: | |
branches: | |
- release | |
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: Bump version and push tag | |
id: tag_version | |
uses: mathieudutour/[email protected] | |
with: | |
release_branches: "release" | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Create a GitHub release | |
uses: ncipollo/release-action@v1 | |
with: | |
tag: ${{ steps.tag_version.outputs.new_version }} | |
name: Release ${{ steps.tag_version.outputs.new_tag }} | |
body: ${{ steps.tag_version.outputs.changelog }} | |
- name: Gradle Publish | |
env: | |
RELEASE_VERSION: ${{ steps.tag_version.outputs.new_version }} | |
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 |