Skip to content

Build+42 release/3.0.0-pre.2 #42

Build+42 release/3.0.0-pre.2

Build+42 release/3.0.0-pre.2 #42

Workflow file for this run

name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'The version of the release (e.g. 1.0.0)'
required: true
type: string
run-name: Build+${{ github.run_number }} release/${{ inputs.version }}
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: write
jobs:
release:
name: 🎉 Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up JDK
uses: actions/setup-java@v5
with:
java-version: '25'
distribution: 'temurin'
cache: gradle
- name: Make gradle wrapper executable
run: chmod +x ./gradlew
- name: Build with Gradle
run: ./gradlew build --full-stacktrace -Pmod_version=${{ inputs.version }}
- name: Upload artifacts
uses: actions/upload-artifact@v7
with:
name: Artifacts
path: build/libs/
- name: Create release notes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ inputs.version }}
run: |
gh release create "$tag" \
--target "${{ github.ref_name }}" \
--repo="$GITHUB_REPOSITORY" \
--title="$tag" \
--generate-notes \
build/libs/*.jar