update: add nightly release workflow for dedicated server and client builds to Actions

This commit is contained in:
kuwacom 2026-03-11 22:10:47 +09:00
parent 96d15b3181
commit 80d563d181

View file

@ -1,4 +1,4 @@
name: Nightly Release name: Nightly Releases
on: on:
workflow_dispatch: workflow_dispatch:
@ -10,6 +10,9 @@ on:
- '*.md' - '*.md'
- '.github/*.md' - '.github/*.md'
permissions:
contents: write
jobs: jobs:
build: build:
name: Build Windows64 name: Build Windows64
@ -28,13 +31,16 @@ jobs:
- name: Zip Build - name: Zip Build
run: 7z a -r LCEWindows64.zip ./x64/Release/* run: 7z a -r LCEWindows64.zip ./x64/Release/*
- name: Update release - name: Zip Dedicated Server Build
run: 7z a -r LCEServerWindows64.zip ./x64/Minecraft.Server/Release/* -x!obj -x!*.pch
- name: Update Client release
uses: andelf/nightly-release@main uses: andelf/nightly-release@main
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
tag_name: nightly tag_name: nightly
name: Nightly Release name: Nightly Client Release
body: | body: |
Requires at least Windows 7 and DirectX 11 compatible GPU to run. Compiled with MSVC v14.44.35207 in Release mode with Whole Program Optimization, as well as `/O2 /Ot /Oi /Ob3 /GF /fp:precise`. Requires at least Windows 7 and DirectX 11 compatible GPU to run. Compiled with MSVC v14.44.35207 in Release mode with Whole Program Optimization, as well as `/O2 /Ot /Oi /Ob3 /GF /fp:precise`.
@ -44,3 +50,19 @@ jobs:
LCEWindows64.zip LCEWindows64.zip
./x64/Release/Minecraft.Client.exe ./x64/Release/Minecraft.Client.exe
./x64/Release/Minecraft.Client.pdb ./x64/Release/Minecraft.Client.pdb
- name: Update Dedicated Server release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly-dedicated-server
name: Nightly Server Release
body: |
Dedicated server runtime for Windows64.
Download `LCEServerWindows64.zip` and extract it to a folder where you'd like to keep the server runtime.
files: |
LCEServerWindows64.zip
./x64/Minecraft.Server/Release/Minecraft.Server.exe
./x64/Minecraft.Server/Release/Minecraft.Server.pdb