Added stable build feature

This commit is contained in:
2026-07-31 18:46:08 +05:00
parent ef104ea2b5
commit dfd8e93b4f
3 changed files with 62 additions and 0 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
.gitea/.DS_Store vendored Normal file

Binary file not shown.

View File

@@ -0,0 +1,62 @@
name: Maven Release Build
on:
push:
tag:
- "v*"
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Oracle JDK 25
uses: actions/setup-java@v4
with:
distribution: oracle
java-version: "25"
cache: maven
- name: Install Maven
run: |
apt-get update
apt-get install -y maven
- name: Check Java and Maven versions
run: |
java --version
mvn --version
- name: Build with Maven
run: mvn --batch-mode clean package
# Pull requests only verify that the project builds successfully.
# A beta release is created only for regular push events.
- name: Create stable release
if: ${{ gitea.event_name == 'push' }}
uses: akkuman/gitea-release-action@v1
with:
server_url: ${{ gitea.server_url }}
token: ${{ secrets.GITEA_TOKEN }}
tag_name: beta-${{ gitea.run_number }}
name: MultiSpawn-Core Beta ${{ gitea.run_number }}
target_commitish: ${{ gitea.sha }}
body: |
Release build of MultiSpawn-Core.
Branch: ${{ gitea.ref_name }}
Build: ${{ gitea.run_number }}
prerelease: false
draft: false
files: |
target/*.jar