Skip to content

Release

Release #14

Workflow file for this run

name: Release
concurrency: ci-${{ github.ref }}
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Setup Java
run: |
echo "JAVA_HOME=$JAVA_HOME_17_X64" >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: fregante/setup-git-user@v2
- uses: gradle/gradle-build-action@v3
name: Setup Gradle
- name: Capture Version
run: |
echo "captured_version=$(./gradlew printVersionName | grep -Po '(?<=GRADLE_VERSION=\()(.*)(?=\))')" >> "$GITHUB_ENV"
id: capture_version
- name: Set Version
uses: rickstaa/action-create-tag@v1
id: "tag_create"
with:
tag: ${{ env.captured_version }}
- uses: gradle/gradle-build-action@v3
with:
arguments: build publish
cache-read-only: ${{ !startsWith(github.ref, 'refs/heads/1.') }}
env:
MAVEN_USER: github
MAVEN_PASSWORD: ${{ secrets.RELEASE_MAVEN_PASSWORD }}
MAVEN_URL: https://maven.lukebemish.dev/releases/