mirror of
https://github.com/KoopaCode/NoBullying.git
synced 2025-04-03 23:27:32 +00:00
Update build.yml
This commit is contained in:
parent
5e8bf70e1c
commit
b21fa6a78f
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -30,20 +30,20 @@ jobs:
|
||||
|
||||
- name: Build with Maven
|
||||
run: mvn -B package --file pom.xml
|
||||
|
||||
- name: List target directory
|
||||
run: ls -la target/
|
||||
|
||||
- name: Direct Upload JAR
|
||||
- name: Prepare Artifact
|
||||
run: |
|
||||
mkdir -p artifacts
|
||||
find target -name '*.jar' ! -name 'original-*.jar' -exec cp {} artifacts/plugin.jar \;
|
||||
echo "JAR_PATH=$(find artifacts -name 'plugin.jar')" >> $GITHUB_ENV
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
if-no-files-found: error
|
||||
path: |
|
||||
target/*.jar
|
||||
!target/original-*.jar
|
||||
name: Plugin.jar
|
||||
name: plugin.jar
|
||||
path: ${{ env.JAR_PATH }}
|
||||
retention-days: 5
|
||||
compression: raw
|
||||
compression: none
|
||||
|
||||
- name: Send Discord Notification
|
||||
if: success()
|
||||
@ -67,16 +67,12 @@ jobs:
|
||||
- name: Download JAR
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: Plugin.jar
|
||||
path: ./
|
||||
|
||||
- name: List files
|
||||
run: ls -la
|
||||
name: plugin.jar
|
||||
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
files: "*.jar"
|
||||
files: plugin.jar
|
||||
fail_on_unmatched_files: true
|
||||
|
||||
- name: Send Release Discord Notification
|
||||
|
Loading…
x
Reference in New Issue
Block a user