Skip to content

Release

Release #20

Workflow file for this run

name: Release
on:
release:
types: [ published ]
jobs:
build:
runs-on: ubuntu-latest
name: Publish Release
steps:
- uses: actions/checkout@v3
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'adopt'
- name: Build
run: './gradlew classes'
- name: Test
run: './gradlew test jacocoTestReport testCodeCoverageReport'
- name: SonarQube
run: './gradlew sonar'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- name: Publish Release to GitHub Packages
run: './gradlew publishMavenJavaPublicationToGitHubPackagesRepository'
env:
RELEASE_VERSION: ${{ github.ref_name }}
GITHUB_TOKEN: ${{ secrets.OSS_GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSS_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSS_SIGNING_PASSWORD }}
- name: Publish Release to OSSRH
run: './gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository'
env:
RELEASE_VERSION: ${{ github.ref_name }}
OSS_USERNAME: ${{ secrets.OSS_USERNAME }}
OSS_PASSWORD: ${{ secrets.OSS_PASSWORD }}
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.OSS_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.OSS_SIGNING_PASSWORD }}