71 lines
1.7 KiB
YAML
71 lines
1.7 KiB
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up JDK 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
|
|
- name: Grant execute permission for gradlew
|
|
run: chmod +x gradlew
|
|
|
|
- name: Build with Gradle
|
|
run: ./gradlew build
|
|
|
|
- name: Get version from tag
|
|
id: get_version
|
|
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Create Release
|
|
uses: actions/forgejo-release@v2
|
|
with:
|
|
direction: upload
|
|
url: ${{ github.server_url }}
|
|
token: ${{ secrets.RELEASE_TOKEN }}
|
|
release-dir: build/libs
|
|
release-notes: |
|
|
## Release ${{ steps.get_version.outputs.VERSION }}
|
|
|
|
### What's New
|
|
- Feature 1
|
|
- Feature 2
|
|
|
|
### Bug Fixes
|
|
- Fix 1
|
|
- Fix 2
|
|
|
|
### Changes
|
|
- Change 1
|
|
- Change 2
|
|
|
|
### Breaking Changes
|
|
- None
|
|
|
|
### Installation
|
|
1. Download the JAR file from the assets below
|
|
2. Place it in your server's `plugins` folder
|
|
3. Restart the server
|
|
|
|
### Requirements
|
|
- Minecraft Server with PaperMC: 1.21.11
|
|
- Java: 21+
|
|
|
|
---
|
|
**Full Changelog**: Compare with previous version
|
|
tag: ${{ steps.get_version.outputs.VERSION }}
|
|
title: Release ${{ steps.get_version.outputs.VERSION }}
|
|
prerelease: false
|
|
draft: true
|