UPDATE CI
This commit is contained in:
56
.github/workflows/build_1_20_4_v2.yml
vendored
56
.github/workflows/build_1_20_4_v2.yml
vendored
@@ -23,38 +23,38 @@ 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
|
||||
# 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: 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: |
|
||||
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.mcversion }} - ${{ env.commitid }}
|
||||
# body: |
|
||||
# 📦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
|
||||
# build/libs/luminol-1.20.4-paperclip.jar
|
||||
# generateReleaseNotes: true
|
||||
# prerelease: ${{ env.pre }}
|
||||
# makeLatest: ${{ env.make_latest }}
|
||||
# token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- 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.mcversion }} - ${{ env.commitid }}
|
||||
body: |
|
||||
📦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
|
||||
build/libs/luminol-1.20.4-paperclip.jar
|
||||
generateReleaseNotes: true
|
||||
prerelease: ${{ env.pre }}
|
||||
makeLatest: ${{ env.make_latest }}
|
||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||
- name: Push to Api
|
||||
if: "!contains(github.event.commits[0].message, '[release-skip]')"
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user