diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index f19bc68..29e6e47 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -28,8 +28,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
+ uses: actions/upload-artifact@v4
with:
name: maven-artifacts
- path: target/spigot/*.jar
\ No newline at end of file
+ path: target/spigot/*.jar
+
+ - uses: ncipollo/release-action@v1
+ with:
+ artifacts: '*.jar'
+ name: '${{ steps.set-version.outputs.version }} Release'
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