Skip to content

ci: auto publish in maven central (#58) #6

ci: auto publish in maven central (#58)

ci: auto publish in maven central (#58) #6

name: Publish to Maven Central
on:
push:
tags:
- "*"
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Preconfigure gradle
uses: ./.github/actions/prepare-gradle
- name: Publish to Maven Central
run: ./gradlew FlagsmithClient:publishAndReleaseToMavenCentral
env:
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_KEY_PASSWORD }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ vars.SONATYPE_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_PASSWORD }}