mirror of
https://github.com/neoStudiosLCE/neoLegacy.git
synced 2026-06-09 01:52:56 +00:00
fix: CI
This commit is contained in:
parent
d8da9af7fe
commit
e0700871c7
53
.github/workflows/nightly.yml
vendored
53
.github/workflows/nightly.yml
vendored
|
|
@ -1,6 +1,9 @@
|
|||
name: Nightly Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
|
|
@ -40,8 +43,8 @@ jobs:
|
|||
shell: pwsh
|
||||
run: |
|
||||
$source = "./build/windows64/Minecraft.Client/Release"
|
||||
$zip = "LCREWindows64.zip"
|
||||
$topLevel = "LCREWindows64"
|
||||
$zip = "neoLegacyWindows64.zip"
|
||||
$topLevel = "neoLegacyWindows64"
|
||||
|
||||
# Collect files, excluding unwanted extensions
|
||||
$files = Get-ChildItem -Path $source -Recurse -File |
|
||||
|
|
@ -78,7 +81,7 @@ jobs:
|
|||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path staging
|
||||
Copy-Item LCREWindows64.zip staging/
|
||||
Copy-Item neoLegacyWindows64.zip staging/
|
||||
Copy-Item ./build/windows64/Minecraft.Client/Release/Minecraft.Client.exe staging/
|
||||
|
||||
- name: Upload artifacts
|
||||
|
|
@ -114,8 +117,8 @@ jobs:
|
|||
shell: pwsh
|
||||
run: |
|
||||
$source = "./build/windows64/Minecraft.Server/Release"
|
||||
$zip = "LCREServerWindows64.zip"
|
||||
$topLevel = "LCREServerWindows64"
|
||||
$zip = "neoLegacyServerWindows64.zip"
|
||||
$topLevel = "neoLegacyServerWindows64"
|
||||
|
||||
$files = Get-ChildItem -Path $source -Recurse -File |
|
||||
Where-Object { $_.Extension -notin '.pch', '.zip', '.ipdb', '.iobj' }
|
||||
|
|
@ -149,7 +152,7 @@ jobs:
|
|||
shell: pwsh
|
||||
run: |
|
||||
New-Item -ItemType Directory -Force -Path staging
|
||||
Copy-Item LCREServerWindows64.zip staging/
|
||||
Copy-Item neoLegacyServerWindows64.zip staging/
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v6
|
||||
|
|
@ -176,7 +179,7 @@ jobs:
|
|||
uses: actions/attest-build-provenance@v2
|
||||
with:
|
||||
subject-path: |
|
||||
artifacts/LCREServerWindows64.zip
|
||||
artifacts/neoLegacyServerWindows64.zip
|
||||
|
||||
- name: Get short SHA
|
||||
id: sha
|
||||
|
|
@ -192,17 +195,9 @@ jobs:
|
|||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh api repos/${{ github.repository }}/git/refs/tags/Nightly-Dedicated-Server --method DELETE || true
|
||||
|
||||
- name: Import GPG key
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||
git_user_signingkey: true
|
||||
git_tag_gpgsign: true
|
||||
|
||||
- name: Create signed tag
|
||||
- name: Create tag
|
||||
run: |
|
||||
git tag -s -f Nightly-Dedicated-Server -m "Nightly server release ${{ steps.sha.outputs.short }}"
|
||||
git tag -f Nightly-Dedicated-Server -m "Nightly server release ${{ steps.sha.outputs.short }}"
|
||||
git push origin Nightly-Dedicated-Server --force
|
||||
|
||||
- name: Create release
|
||||
|
|
@ -213,7 +208,7 @@ jobs:
|
|||
--title "Server: ${{ steps.sha.outputs.short }}" \
|
||||
--notes "Dedicated Server runtime for Windows64.
|
||||
|
||||
Download \`LCREServerWindows64.zip\` and extract it to a folder where you'd like to keep the server runtime." \
|
||||
Download \`neoLegacyServerWindows64.zip\` and extract it to a folder where you'd like to keep the server runtime." \
|
||||
--latest=false
|
||||
|
||||
release-client:
|
||||
|
|
@ -235,7 +230,7 @@ jobs:
|
|||
uses: actions/attest-build-provenance@v2
|
||||
with:
|
||||
subject-path: |
|
||||
artifacts/LCREWindows64.zip
|
||||
artifacts/neoLegacyWindows64.zip
|
||||
artifacts/Minecraft.Client.exe
|
||||
|
||||
- name: Get short SHA
|
||||
|
|
@ -252,17 +247,9 @@ jobs:
|
|||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: gh api repos/${{ github.repository }}/git/refs/tags/Nightly --method DELETE || true
|
||||
|
||||
- name: Import GPG key
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
passphrase: ${{ secrets.GPG_PASSPHRASE }}
|
||||
git_user_signingkey: true
|
||||
git_tag_gpgsign: true
|
||||
|
||||
- name: Create signed tag
|
||||
run: |
|
||||
git tag -s -f Nightly -m "Nightly release ${{ steps.sha.outputs.short }}"
|
||||
git tag -f Nightly -m "Nightly release ${{ steps.sha.outputs.short }}"
|
||||
git push origin Nightly --force
|
||||
|
||||
- name: Write release notes
|
||||
|
|
@ -270,15 +257,15 @@ jobs:
|
|||
cat > notes.md <<'NOTES'
|
||||
# Instructions:
|
||||
**Newcomers:**
|
||||
- If this is your first time, download `LCREWindows64.zip` and extract it wherever you would like to keep it.
|
||||
- If this is your first time, download `neoLegacyWindows64.zip` and extract it wherever you would like to keep it.
|
||||
- I would recommend to set your username prior to launch (create a file called `username.txt`, put your desired username into the file, and save).
|
||||
- To play, simply run `Minecraft.Client.exe`.
|
||||
|
||||
**For those that wish to update their existing installation with the latest build:**
|
||||
- Download `Minecraft.Client.exe` and `Minecraft.Client.pdb` and copy them over to your existing LCREWindows64 build (overwrite your old version of Minecraft.Client.exe and Minecraft.Client.pdb).
|
||||
- Download `Minecraft.Client.exe` and `Minecraft.Client.pdb` and copy them over to your existing neoLegacyWindows64 build (overwrite your old version of Minecraft.Client.exe and Minecraft.Client.pdb).
|
||||
|
||||
**Steam Deck & Linux:**
|
||||
- Y'all know the drill. Download the `LCREWindows64.zip`, extract it, add the `Minecraft.Client.exe` as a "Non-Steam Game" within the Steam library, turn on compatibility mode with Proton Experimental, and then run it!
|
||||
- Y'all know the drill. Download the `neoLegacyWindows64.zip`, extract it, add the `Minecraft.Client.exe` as a "Non-Steam Game" within the Steam library, turn on compatibility mode with Proton Experimental, and then run it!
|
||||
|
||||
# Multiplayer instructions:
|
||||
LAN games are natively supported, and any LAN games will appear automatically on the right. However, if you'd like to play with your friends online (and if you don't want to require them to setup a vpn, and/or if you don't want to port forward), I would recommend the following setup. Please keep in mind, you do NOT need to do this to enjoy the game. This is just how I have it setup for me so my friends can join without any hassle:
|
||||
|
|
@ -289,7 +276,7 @@ jobs:
|
|||
|
||||
How-to:
|
||||
- Ensure your playit.gg agent is connected to your playit.gg account
|
||||
- On the playit.gg website, setup a new tunnel (choose TCP). Ensure the configurable settings are set to the below values, assuming your agent is installed on the same computer as your online LCREMinecraft game is hosted from.
|
||||
- On the playit.gg website, setup a new tunnel (choose TCP). Ensure the configurable settings are set to the below values, assuming your agent is installed on the same computer as your online neoLegacyMinecraft game is hosted from.
|
||||
- Configurable settings:
|
||||
- Local IP: `127.0.0.1`
|
||||
- Local Port: `25565`
|
||||
|
|
@ -321,4 +308,4 @@ jobs:
|
|||
with:
|
||||
name: |
|
||||
client-build
|
||||
server-build
|
||||
server-build
|
||||
|
|
|
|||
Loading…
Reference in a new issue