Skip to content

Publish Core module #23

Publish Core module

Publish Core module #23

name: Publish Core module
on:
workflow_dispatch
env:
CORE_MODULE_VERSION: 1.0.2
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
clean: 'true'
fetch-depth: 0
- uses: actions/setup-java@v1
with:
java-version: 11
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle clean
run: ./gradlew clean --info
- name: Build with Gradle
run: ./gradlew -Pversion=$CORE_MODULE_VERSION :Core:build --info
- name: Publish to maven central
run: |
GPG_PRIVATE_KEY="${{secrets.GPG_PRIVATE_KEY}}" GPG_PRIVATE_PASSWORD="${{secrets.GPG_PRIVATE_PASSWORD}}" GB_SONATYPE_USERNAME='${{secrets.GB_SONATYPE_USERNAME}}' GB_SONATYPE_PASSWORD='${{secrets.GB_SONATYPE_PASSWORD}}' ./gradlew -Pversion=$CORE_MODULE_VERSION :Core:publish