Skip to content

Bump publishing, bring back automatic release of artifacts (#118) #23

Bump publishing, bring back automatic release of artifacts (#118)

Bump publishing, bring back automatic release of artifacts (#118) #23

Workflow file for this run

name: Publish
on:
workflow_dispatch:
push:
tags:
- '*.*.*'
jobs:
deploy-maven:
name: Deploy To Maven
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Cache Gradle
uses: actions/cache@v4
with:
path: |
~/.gradle/caches/
~/.gradle/wrapper/
key: cache-gradle-${{ hashFiles('**/*.gradle', '**/gradle-wrapper.properties') }}
restore-keys: cache-gradle-
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: zulu
java-version: 17
- name: Deploy Release
env:
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.SONATYPE_NEXUS_USERNAME }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.SONATYPE_NEXUS_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SONATYPE_NEXUS_SIGNING_KEY }}
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SONATYPE_NEXUS_SIGNING_KEY_PASSWORD }}
run: ./gradlew publishAndReleaseToMavenCentral --no-configuration-cache --no-daemon --no-parallel
- name: Github release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: ./gradlew githubRelease
- name: Stop Gradle
run: ./gradlew --stop