Skip to content

bump version.

bump version. #3

Workflow file for this run

name: Publish Release builds
on:
push:
tags:
- v[0-9][0-9][0-9][0-9].[0-9][0-9].[0-9][0-9]
jobs:
publish_release:
name: Release build and publish
runs-on: macos-latest
steps:
- name: Checkout code
uses: actions/checkout@v3.3.0
- name: Set up JDK 11
uses: actions/setup-java@v3.9.0
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Release build
run: ./gradlew assemble
- name: Verify library sources
run: ./gradlew detektAll ktlintCheck lintRelease
- name: Publish to Sonatype
run: ./gradlew publishAllPublicationsToMavenCentralRepository
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.SIGNING_KEY_ID }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_KEY }}
SNAPSHOT: false
- name: Create Release
id: create_release
uses: actions/create-release@latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: Release ${{ github.ref }}
draft: true
prerelease: false