mirror of
https://github.com/KoopaCode/NoBullying.git
synced 2025-04-09 18:07:33 +00:00
Update build.yml
This commit is contained in:
parent
4c202ff4cb
commit
4a5beb44c0
20
.github/workflows/build.yml
vendored
20
.github/workflows/build.yml
vendored
@ -30,15 +30,20 @@ jobs:
|
|||||||
|
|
||||||
- name: Build with Maven
|
- name: Build with Maven
|
||||||
run: mvn -B package --file pom.xml
|
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 JAR
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.PLUGIN_FILE }}.jar
|
name: ${{ env.PLUGIN_FILE }}
|
||||||
path: target/${{ env.PLUGIN_FILE }}-*.jar
|
path: artifacts/${{ env.PLUGIN_FILE }}.jar
|
||||||
|
retention-days: 5
|
||||||
compression-level: 0
|
compression-level: 0
|
||||||
if-no-files-found: error
|
overwrite: true
|
||||||
type: file
|
|
||||||
|
|
||||||
- name: Send Discord Notification
|
- name: Send Discord Notification
|
||||||
if: success()
|
if: success()
|
||||||
@ -62,12 +67,13 @@ jobs:
|
|||||||
- name: Download JAR
|
- name: Download JAR
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ env.PLUGIN_FILE }}.jar
|
name: ${{ env.PLUGIN_FILE }}
|
||||||
|
path: ./
|
||||||
|
|
||||||
- name: Upload Release
|
- name: Upload Release
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: ${{ env.PLUGIN_FILE }}-*.jar
|
files: ${{ env.PLUGIN_FILE }}.jar
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
|
|
||||||
- name: Send Release Discord Notification
|
- name: Send Release Discord Notification
|
||||||
|
Loading…
x
Reference in New Issue
Block a user