ver 1.3
Build Plugin / Build with Maven (push) Successful in 52s

This commit is contained in:
2026-06-07 19:33:14 +08:00
parent d850455b98
commit 4ed6b8ec5a
2 changed files with 17 additions and 3 deletions
+16 -2
View File
@@ -9,9 +9,11 @@ jobs:
build: build:
name: Build with Maven name: Build with Maven
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
contents: write
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v5 uses: actions/checkout@v6
- name: Set up JDK 25 and enable Maven cache - name: Set up JDK 25 and enable Maven cache
uses: actions/setup-java@v5 uses: actions/setup-java@v5
@@ -28,8 +30,20 @@ jobs:
- name: Build and package with Maven - name: Build and package with Maven
run: mvn -B package run: mvn -B package
- name: Determine version
id: set-version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/ver/}
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Upload built artifacts - name: Upload built artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: maven-artifacts name: maven-artifacts
path: target/spigot/*.jar path: target/spigot/*.jar
- uses: akkuman/gitea-release-action@v1
with:
name: '${{ steps.set-version.outputs.version }} Release'
files: target/spigot/*.jar
+1 -1
View File
@@ -6,7 +6,7 @@
<groupId>xyz.fortern</groupId> <groupId>xyz.fortern</groupId>
<artifactId>fortern-helper</artifactId> <artifactId>fortern-helper</artifactId>
<version>1.2</version> <version>1.3</version>
<packaging>jar</packaging> <packaging>jar</packaging>
<name>fortern-helper</name> <name>fortern-helper</name>