Releasing 1.3.1 #30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
run-name: Releasing ${{inputs.semVer}} | |
on: | |
workflow_dispatch: | |
inputs: | |
semVer: | |
required: true | |
type: string | |
description: "Version number" | |
jobs: | |
publish: | |
if: ${{ github.actor == 'lehvolk' || github.actor == 'denis-fokin' || github.actor == 'bissquit' }} | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v3 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
- name: Publish package | |
uses: gradle/gradle-build-action@67421db6bd0bf253fb4bd25b31ebb98943c375e1 | |
with: | |
gradle-version: 7.6.1 | |
arguments: | | |
publish | |
-PincludeDokka=true | |
-PsemVer=${{inputs.semVer}} | |
-Pactor=${{ secrets.MAVEN_CENTRAL_LOGIN }} | |
-Ptoken=${{ secrets.MAVEN_CENTRAL_TOKEN }} | |
-PgpgKey="${{ secrets.OSSRH_GPG_SECRET_KEY }}" | |
-PgpgPassphrase=${{ secrets.OSSRH_GPG_SECRET_PASSPHRASE }} | |
-PrepoUrl=https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ | |
- name: Upload release artifacts | |
uses: softprops/action-gh-release@v1 | |
with: | |
draft: true | |
files: | | |
jacodb-api/build/libs/jacodb-api-${{inputs.semVer}}.jar | |
jacodb-approximations/build/libs/jacodb-approximations-${{inputs.semVer}}.jar | |
jacodb-analysis/build/libs/jacodb-analysis-${{inputs.semVer}}.jar | |
jacodb-core/build/libs/jacodb-core-${{inputs.semVer}}.jar | |
jacodb-cli/build/libs/jacodb-cli-${{inputs.semVer}}.jar | |
jacodb-examples/build/libs/jacodb-examples-${{inputs.semVer}}.jar |