Skip to content

0.13.0

0.13.0 #15

Workflow file for this run

name: CD
on:
release:
types: [ created ]
jobs:
publish-maven-artifact:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup JDK 8
uses: actions/[email protected]
with:
java-version: 8
- name: Setup Gradle cache
uses: actions/[email protected]
with:
path: ~/.gradle
key: ${{ runner.os }}-8-gradle-${{ hashFiles('build.gradle') }}
restore-keys: |
${{ runner.os }}-8-gradle
- name: Check
run: ./gradlew check
- name: Publish
run: ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository
env:
OSSRHUSER: ${{ secrets.OSSRHUSER }}
OSSRHPASSWORD: ${{ secrets.OSSRHPASSWORD }}
GITHUB_VERSION: ${{ github.event.release.tag_name }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Upload Gradle reports
uses: actions/[email protected]
if: failure()
with:
name: Gradle Reports
path: "**/build/reports"