Skip to content

Commit d358fcf

Browse files
authored
Merge pull request #5 from theo546/codex/modifier-logo.svg-en-cube-3d-et-autres-changements
Refine release process and assets
2 parents 3c88958 + 458e444 commit d358fcf

7 files changed

Lines changed: 28 additions & 11 deletions

File tree

.github/workflows/release.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55
branches:
66
- main
77
- master
8+
- dev
89

910
jobs:
1011
build:
@@ -20,6 +21,8 @@ jobs:
2021
run: |
2122
VERSION=$(awk -F\" '/^version:/ {print $2}' RandomDrop/src/main/resources/plugin.yml)
2223
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
24+
- id: commit
25+
run: echo "short=$(git rev-parse --short HEAD)" >> "$GITHUB_OUTPUT"
2326
- name: Delete existing release
2427
env:
2528
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -31,11 +34,23 @@ jobs:
3134
fi
3235
- name: Build
3336
run: mvn -B -f RandomDrop/pom.xml package
37+
- id: prepare
38+
run: |
39+
VERSION=${{ steps.version.outputs.version }}
40+
COMMIT=${{ steps.commit.outputs.short }}
41+
if [ "${{ github.ref }}" = "refs/heads/dev" ]; then
42+
NAME="RandomDrop-${VERSION}-${COMMIT}.jar"
43+
else
44+
NAME="RandomDrop-${VERSION}.jar"
45+
fi
46+
mv RandomDrop/target/osef.jar "$NAME"
47+
echo "file=$NAME" >> "$GITHUB_OUTPUT"
3448
- name: Release
3549
uses: softprops/action-gh-release@v1
3650
with:
3751
tag_name: ${{ steps.version.outputs.version }}
3852
name: RandomDrop ${{ steps.version.outputs.version }}
39-
files: RandomDrop/target/*.jar
53+
files: ${{ steps.prepare.outputs.file }}
54+
prerelease: ${{ github.ref == 'refs/heads/dev' }}
4055
env:
4156
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
RandomDrop License
22

3-
Copyright (c) 2025 theo546 - github.com/theo546
3+
Copyright (c) theo546 - github.com/theo546
44

55
Permission is granted to use this plugin free of charge under the following conditions:
66
- The plugin must not be used to generate any form of currency, whether virtual or real.

RandomDrop/pom.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<groupId>com.theo546</groupId>
66
<artifactId>RandomDrop</artifactId>
7-
<version>1.0.6</version>
7+
<version>0.0.0</version>
88
<packaging>jar</packaging>
99

1010
<name>RandomDrop</name>
@@ -26,6 +26,7 @@
2626
</dependencies>
2727

2828
<build>
29+
<finalName>osef</finalName>
2930
<plugins>
3031
<plugin>
3132
<groupId>org.apache.maven.plugins</groupId>

RandomDrop/src/main/java/com/theo546/randomdrop/Listener.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RandomDrop License | Copyright 2025 theo546 - github.com/theo546
1+
// RandomDrop License | Copyright theo546 - github.com/theo546
22

33
package com.theo546.randomdrop;
44

RandomDrop/src/main/java/com/theo546/randomdrop/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RandomDrop License | Copyright 2025 theo546 - github.com/theo546
1+
// RandomDrop License | Copyright theo546 - github.com/theo546
22
package com.theo546.randomdrop;
33

44
import java.util.ArrayList;

RandomDrop/src/main/resources/plugin.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ name: RandomDrop
33
version: "1.0.6"
44
api-version: 1.21
55
author: theo546
6-
description: A plugin to randomize the items you should normally get!
6+
description: A Paper plugin to randomize the Minecraft loot table!
77

logo.svg

Lines changed: 6 additions & 5 deletions
Loading

0 commit comments

Comments
 (0)