Merge pull request #111 from xmtp/add-private-preferences-types #85
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 | |
on: | |
push: | |
branches: | |
- main | |
- beta | |
jobs: | |
js: | |
name: Release (JS) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "lts/*" | |
- name: Install dependencies | |
run: npm ci | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm run semantic-release | |
kotlin: | |
if: ${{ github.ref_name == 'main' }} | |
name: Release (Kotlin) | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project sources | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Gradle | |
uses: gradle/gradle-build-action@v2 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Generate protobufs | |
run: dev/kotlin/generate | |
- name: Run build with Gradle Wrapper | |
run: ./gradlew build | |
- name: Set Tag | |
run: | | |
TAG=`echo $(git describe --tags --abbrev=0)` | |
echo "GIT_TAG=${TAG#v}" >> $GITHUB_ENV | |
- name: Gradle Publish | |
env: | |
RELEASE_VERSION: ${{ env.GIT_TAG }} | |
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 |