Skip to content

Hopefully figure out CI publishing #1

Hopefully figure out CI publishing

Hopefully figure out CI publishing #1

Workflow file for this run

name: Release
concurrency: ci-${{ github.ref }}
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- uses: gradle/gradle-build-action@v2
with:
arguments: checkLicenses build
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') }}
- uses: gradle/gradle-build-action@v2
with:
arguments: publish closeAndReleaseSonatypeStagingRepository
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') }}
env:
SONATYPE_USER: ${{ secrets.MAVEN_USER }}
SONATYPE_PASSWORD: ${{ secrets.MAVEN_PASSWORD }}
SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }}
SIGNING_PASSWORD: ${{ secrets.GPG_KEY_PASSWORD }}