Compare commits
3 Commits
1.20.4-857
...
1.20.4-858
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1de9ca9d5f | ||
|
|
bc842c855a | ||
|
|
120ddafc2f |
38
.github/workflows/build_1_20_4_v2.yml
vendored
38
.github/workflows/build_1_20_4_v2.yml
vendored
@@ -50,25 +50,37 @@ jobs:
|
||||
mv build/libs/luminol-paperclip-1.20.4-R0.1-SNAPSHOT-reobf.jar build/libs/luminol-1.20.4-paperclip.jar
|
||||
- name: Get and Set ENV
|
||||
run: sh scripts/GetSetENV.sh
|
||||
- name: Create Release
|
||||
if: "!contains(github.event.commits[0].message, '[release-skip]')"
|
||||
uses: ncipollo/release-action@v1.12.0
|
||||
# - 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 ${{ steps.get_version.outputs.version }} - ${{ steps.short_sha.outputs.sha_short }}
|
||||
# body: |
|
||||
# 📦Version: `${{ steps.get_version.outputs.version }}` | Commit ${{ steps.short_sha.outputs.sha_short }} [](https://github.com/LeavesMC/LuminolMC/Luminol/download/${{ steps.get_version.outputs.version }}-${{ steps.short_sha.outputs.sha_short }}/luminol-1.20.4-paperclip.jar)
|
||||
# This release is automatically compiled by GitHub Actions
|
||||
# artifacts: |
|
||||
# build/libs/luminol-1.20.4-bundler.jar
|
||||
# build/libs/luminol-1.20.4-paperclip.jar
|
||||
# generateReleaseNotes: true
|
||||
# prerelease: ${{ env.pre }}
|
||||
# makeLatest: ${{ env.make_latest }}
|
||||
# token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Release Artifacts
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
with:
|
||||
release_name: "Luminol MC1.20.4 - ${{ github.event.repository.updated_at}}"
|
||||
tag: ${{ env.tag }}
|
||||
name: Luminol ${{ steps.get_version.outputs.version }} - ${{ steps.short_sha.outputs.sha_short }}
|
||||
body: |
|
||||
📦Version: `${{ steps.get_version.outputs.version }}` | Commit ${{ steps.short_sha.outputs.sha_short }} [](https://github.com/LeavesMC/LuminolMC/Luminol/download/${{ steps.get_version.outputs.version }}-${{ steps.short_sha.outputs.sha_short }}/luminol-1.20.4-paperclip.jar)
|
||||
This release is automatically compiled by GitHub Actions
|
||||
artifacts: |
|
||||
build/libs/luminol-1.20.4-bundler.jar
|
||||
build/libs/luminol-1.20.4-paperclip.jar
|
||||
generateReleaseNotes: true
|
||||
📦Version: `${{ steps.get_version.outputs.version }}` | Commit ${{ steps.short_sha.outputs.sha_short }} [](https://github.com/LeavesMC/LuminolMC/Luminol/download/${{ steps.get_version.outputs.version }}-${{ steps.short_sha.outputs.sha_short }}/luminol-1.20.4-paperclip.jar)
|
||||
This release is automatically compiled by GitHub Actions
|
||||
repo_token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
file: "build/libs/luminol-1.20.4-paperclip.jar"
|
||||
file_glob: true
|
||||
prerelease: ${{ env.pre }}
|
||||
makeLatest: ${{ env.make_latest }}
|
||||
token: "${{ secrets.GHP }}"
|
||||
- name: Push to Api
|
||||
if: "!contains(github.event.commits[0].message, '[release-skip]')"
|
||||
env:
|
||||
secret_v2: ${{ secrets.API_V2_PUSH_TOKEN }}
|
||||
tag: ${{ env.tag }}
|
||||
run: sh scripts/PushToAPI.sh
|
||||
run: sh scripts/PushToAPI.sh
|
||||
|
||||
@@ -24,4 +24,4 @@ jar_name="build/libs/luminol-1.20.4-paperclip.jar"
|
||||
jar_sha256=`sha256 $jar_name`
|
||||
|
||||
# v2
|
||||
curl --location --request POST "https://api.luminolmc.com/v2/commit/build" --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 "{\"project_id\":\"$project_id\",\"version\":\"$mcversion\",\"channel\":\"$channel\",\"changes\":\"$changes\",\"jar_name\":\"$jar_name\",\"sha256\":\"$jar_sha256\",\"tag\":\"$tag\"}"
|
||||
Reference in New Issue
Block a user