Final Try!

This commit is contained in:
Koopa 2025-01-31 20:53:47 -05:00
parent d058d57b00
commit 5e8bf70e1c

View File

@ -30,19 +30,20 @@ jobs:
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Create Artifacts Directory
run: |
mkdir -p artifacts
cp target/${{ env.PLUGIN_FILE }}-*.jar artifacts/${{ env.PLUGIN_FILE }}.jar
- name: Upload Artifact
- name: List target directory
run: ls -la target/
- name: Direct Upload JAR
uses: actions/upload-artifact@v4
with:
name: ${{ env.PLUGIN_FILE }}
path: artifacts/${{ env.PLUGIN_FILE }}.jar
if-no-files-found: error
path: |
target/*.jar
!target/original-*.jar
name: Plugin.jar
retention-days: 5
overwrite: true
compression: raw
- name: Send Discord Notification
if: success()
@ -66,13 +67,16 @@ jobs:
- name: Download JAR
uses: actions/download-artifact@v4
with:
name: ${{ env.PLUGIN_FILE }}
name: Plugin.jar
path: ./
- name: List files
run: ls -la
- name: Upload Release
uses: softprops/action-gh-release@v2
with:
files: ${{ env.PLUGIN_FILE }}.jar
files: "*.jar"
fail_on_unmatched_files: true
- name: Send Release Discord Notification