diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ed232d1..189abc6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,16 +1,22 @@ name: Publish kotlinx-serialization-smile-core on: - push: - branches: [ "main" ] - pull_request: - branches: [ "main" ] + release: + types: [published] jobs: build: runs-on: ubuntu-latest + env: + ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.ORG_GRADLE_PROJECT_MAVEN_CENTRAL_USERNAME }} + ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.ORG_GRADLE_PROJECT_MAVEN_CENTRAL_PASSWORD }} + ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY }} + ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY_ID }} + ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.ORG_GRADLE_PROJECT_SIGNING_IN_MEMORY_KEY_PASSWORD }} + TAG: ${{ github.event.release.tag_name }} + steps: - uses: actions/checkout@v4