Compare commits
11 Commits
1.20.4-752
...
1.20.4-d13
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d13bfadde4 | ||
|
|
88aab8eadc | ||
|
|
8914d3fcbc | ||
|
|
d2f2ea4382 | ||
|
|
a6888b27d0 | ||
|
|
efabe850e0 | ||
|
|
6c6786792f | ||
|
|
dddb28fdf6 | ||
|
|
8546ac56e2 | ||
|
|
2c09274132 | ||
|
|
a9238f8e8e |
32
.github/workflows/build_1_20_4_v2.yml
vendored
32
.github/workflows/build_1_20_4_v2.yml
vendored
@@ -23,28 +23,30 @@ jobs:
|
||||
run: |
|
||||
git config --global user.email "ci@luminolmc.com"
|
||||
git config --global user.name "Luminol CI"
|
||||
- name: Apply Patches
|
||||
run: ./gradlew applyPatches
|
||||
- name: Build
|
||||
run: ./gradlew createReobfBundlerJar createReobfPaperclipJar
|
||||
- uses: "actions/upload-artifact@v3"
|
||||
with:
|
||||
name: "Luminol CI Artifacts"
|
||||
path: "build/libs/*.jar"
|
||||
- name: Rename jar file
|
||||
# - name: Apply Patches
|
||||
# run: ./gradlew applyPatches
|
||||
# - name: Build
|
||||
# run: ./gradlew createReobfBundlerJar createReobfPaperclipJar
|
||||
# - uses: "actions/upload-artifact@v3"
|
||||
# with:
|
||||
# name: "Luminol CI Artifacts"
|
||||
# path: "build/libs/*.jar"
|
||||
# - name: Rename jar file
|
||||
# run: |
|
||||
# mv build/libs/luminol-bundler-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-bundler.jar
|
||||
# mv build/libs/luminol-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-paperclip.jar
|
||||
- name: setenv
|
||||
run: |
|
||||
mv build/libs/luminol-bundler-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-bundler.jar
|
||||
mv build/libs/luminol-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-paperclip.jar
|
||||
- name: Set ENV
|
||||
run: sh scripts/SetENV.sh
|
||||
sh scripts/SetENV.sh
|
||||
echo "${{ env.tag }}"
|
||||
- name: Create Release
|
||||
if: "!contains(github.event.commits[0].message, '[release-skip]')"
|
||||
uses: ncipollo/release-action@v1.12.0
|
||||
with:
|
||||
tag: ${{ env.tag }}
|
||||
name: Luminol ${{ env.version }} - ${{ env.commitid }}
|
||||
name: Luminol ${{ env.mcversion }} - ${{ env.commitid }}
|
||||
body: |
|
||||
📦Version: `${{ env.version }}` | Commit ${{ env.commitid }} [](https://github.com/LeavesMC/LuminolMC/Luminol/download/${{ env.tag }}/luminol-1.20.4-paperclip.jar)
|
||||
📦Version: `${{ env.mcversion }}` | Commit ${{ env.commitid }} [](https://github.com/LeavesMC/LuminolMC/Luminol/download/${{ env.tag }}/luminol-1.20.4-paperclip.jar)
|
||||
This release is automatically compiled by GitHub Actions
|
||||
artifacts: |
|
||||
build/libs/luminol-1.20.4-bundler.jar
|
||||
|
||||
@@ -7,5 +7,7 @@ org.gradle.caching = true
|
||||
org.gradle.parallel = true
|
||||
org.gradle.vfs.watch = false
|
||||
org.gradle.jvmargs = -Xmx3G
|
||||
|
||||
mcVersion=1.20.4
|
||||
GroupMCV=1.20
|
||||
preVersion=false
|
||||
@@ -7,21 +7,21 @@ prop() {
|
||||
}
|
||||
echo "$tag"
|
||||
project_id="luminol"
|
||||
project_name="luminol"
|
||||
mcversion_group=$(prop GroupMCV)
|
||||
mcversion=$(prop mcVersion)
|
||||
ctime=$(date -u +"%Y-%m-%dT%H:%M:%SZ")
|
||||
echo "$mcversion_group - $mcversion"
|
||||
pre=$(prop preVersion)
|
||||
if [ $pre = "true" ]; then
|
||||
channel="experimental"
|
||||
else
|
||||
channel="default"
|
||||
fi
|
||||
promoted=false
|
||||
|
||||
number=$(git log --oneline ver/1.20.4 ^`git describe --tags --abbrev=0` | wc -l)
|
||||
number=$(git log --oneline "ver/1.20.4" ^$(git describe --tags --abbrev=0) | wc -l)
|
||||
changes=$(git log --pretty='%H<<<%s>>>' -"$number" | sed ':a;N;$!ba;s/\n//g')
|
||||
jar_name="build/libs/luminol-1.20.4-paperclip.jar"
|
||||
jar_sha256=`sha256 $jar_name`
|
||||
|
||||
jar_sha256=`sha256 build/libs/luminol-1.20.4-paperclip.jar`
|
||||
echo "$har_sha256"
|
||||
jar_name="luminol-1.20.4-paperclip.jar"
|
||||
ctime=$(date -u +"%s")"000"
|
||||
echo "$ctime"
|
||||
# v2
|
||||
curl --location --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" --header "Content-Type: application/json" --header "Authentication: $secret_v2" --data-raw "{\"project_id\":\"$project_id\",\"version\":\"$mcversion\",\"channel\":\"$channel\",\"changes\":\"$changes\",\"jar_name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"tag\":\"$tag\"}"
|
||||
curl --location --request POST "https://api.luminolmc.com/v2/projects/$project_id/$mcversion/build/commit" --header "Content-Type: application/json" --header "Authentication: $secret_v2" --data-raw "{\"version_group\":\"$mcversion_group\",\"channel\":\"$channel\",\"changes\":\"$changes\",\"jar_name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"release_tag\":\"$tag\",\"time\":\"$ctime\"}"
|
||||
@@ -3,14 +3,20 @@ prop() {
|
||||
}
|
||||
|
||||
commitid=$(git log --pretty='%h' -1)
|
||||
echo "$commitid"
|
||||
mcversion=$(prop mcVersion)
|
||||
echo "$mcversion"
|
||||
preVersion=$(prop preVersion)
|
||||
echo "$preVersion"
|
||||
release_tag="$mcversion-$commitid"
|
||||
echo "$release_tag"
|
||||
jarName="build/libs/luminol-1.20.4-paperclip.jar"
|
||||
make_latest=$([ $preVersion = "true" ] && echo "false" || echo "true")
|
||||
echo "$make_latest"
|
||||
|
||||
echo "commitid=$commitid" >> $GITHUB_ENV
|
||||
echo "version=$mcversion" >> $GITHUB_ENV
|
||||
echo "mcversion=$mcversion" >> $GITHUB_ENV
|
||||
echo "$mcversion"
|
||||
echo "tag=$release_tag" >> $GITHUB_ENV
|
||||
echo "jar=$jarName" >> $GITHUB_ENV
|
||||
echo "pre=$preVersion" >> $GITHUB_ENV
|
||||
|
||||
Reference in New Issue
Block a user