Skip to content

Release 4.0.1

Release 4.0.1 #61

Workflow file for this run

name: Release Code
on:
release:
types: [ published ]
jobs:
release-code:
timeout-minutes: 60
runs-on: ubuntu-latest
if: github.repository == 'ermadmi78/kobby'
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- name: Set up Java 11
uses: actions/setup-java@v2
with:
distribution: 'adopt'
java-version: 11
- name: Build library with Gradle
run: ./gradlew clean build
- name: Publish library with Gradle
run: |
NEW_VERSION=$(echo "${GITHUB_REF}" | cut -d "/" -f3)
echo "New version: ${NEW_VERSION}"
./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository publishPlugins -Pversion=${NEW_VERSION} --stacktrace
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
GPG_SECRET: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PRIVATE_KEY_PASSPHRASE }}
PLUGIN_PORTAL_KEY: ${{ secrets.GRADLE_PUBLISH_KEY }}
PLUGIN_PORTAL_SECRET: ${{ secrets.GRADLE_PUBLISH_SECRET }}