From 4ed6b8ec5a2272cf30702ed26c5fa1206cc76263 Mon Sep 17 00:00:00 2001 From: Fortern Date: Sun, 7 Jun 2026 19:33:14 +0800 Subject: [PATCH] ver 1.3 --- .github/workflows/workflow.yml | 18 ++++++++++++++++-- pom.xml | 2 +- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index f19bc68..8105e5b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -9,9 +9,11 @@ jobs: build: name: Build with Maven runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repository - uses: actions/checkout@v5 + uses: actions/checkout@v6 - name: Set up JDK 25 and enable Maven cache uses: actions/setup-java@v5 @@ -28,8 +30,20 @@ jobs: - name: Build and package with Maven 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 uses: actions/upload-artifact@v3 with: name: maven-artifacts - path: target/spigot/*.jar \ No newline at end of file + path: target/spigot/*.jar + + - uses: akkuman/gitea-release-action@v1 + with: + name: '${{ steps.set-version.outputs.version }} Release' + files: target/spigot/*.jar diff --git a/pom.xml b/pom.xml index ca52e78..39e774b 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ xyz.fortern fortern-helper - 1.2 + 1.3 jar fortern-helper