mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Build Steam ZIP using x86 BepInEx & Add automatic Discord #releases ping on release (#471)
* Update release.yml to build Steam ZIP correctly Apparently steam uses x86 BepInEx, who knew * Distinguish bepinex.zip file names * Add #releases ping * Better release secret name
This commit is contained in:
1 parent
6e25888b7f
commit
fdffd045db
1 file changed
+34
-12
@@ -113,35 +113,48 @@ jobs:
|
||||
name: ehr
|
||||
path: artifacts/ehr
|
||||
|
||||
- name: Prepare release folder
|
||||
run: mkdir -p release
|
||||
- name: Prepare release folders
|
||||
run: |
|
||||
mkdir -p epic
|
||||
mkdir -p steam
|
||||
|
||||
- name: Download BepInEx 6 pre-release 735
|
||||
run: |
|
||||
curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip -o bepinex.zip
|
||||
unzip bepinex.zip -d release
|
||||
chmod -R u+rwX,go+rX release
|
||||
curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x64-6.0.0-be.735%2B5fef357.zip -o bepinex-x64.zip
|
||||
unzip bepinex-x64.zip -d epic
|
||||
chmod -R u+rwX,go+rX epic
|
||||
curl -L https://builds.bepinex.dev/projects/bepinex_be/735/BepInEx-Unity.IL2CPP-win-x86-6.0.0-be.735%2B5fef357.zip -o bepinex-x86.zip
|
||||
unzip bepinex-x86.zip -d steam
|
||||
chmod -R u+rwX,go+rX steam
|
||||
|
||||
- name: Copy EHR dll to plugins
|
||||
run: cp artifacts/ehr/EHR.dll release/BepInEx/plugins/
|
||||
run: |
|
||||
cp artifacts/ehr/EHR.dll epic/BepInEx/plugins/
|
||||
cp artifacts/ehr/EHR.dll steam/BepInEx/plugins/
|
||||
|
||||
- name: Copy configs to BepInEx config
|
||||
run: |
|
||||
mkdir -p release/BepInEx/config/
|
||||
cp packaging/* release/BepInEx/config/
|
||||
mkdir -p epic/BepInEx/config/
|
||||
mkdir -p steam/BepInEx/config/
|
||||
cp packaging/* epic/BepInEx/config/
|
||||
cp packaging/* steam/BepInEx/config/
|
||||
|
||||
- name: Download modded regions DLL to plugins
|
||||
run: curl -L https://github.com/miniduikboot/Mini.RegionInstall/releases/download/v1.2.0/Mini.RegionInstall.dll -o release/BepInEx/plugins/Mini.RegionInstall.dll
|
||||
run: |
|
||||
curl -L https://github.com/miniduikboot/Mini.RegionInstall/releases/download/v1.2.0/Mini.RegionInstall.dll -o epic/BepInEx/plugins/Mini.RegionInstall.dll
|
||||
cp epic/BepInEx/plugins/Mini.RegionInstall.dll steam/BepInEx/plugins/Mini.RegionInstall.dll
|
||||
|
||||
- name: Steam App ID
|
||||
run : echo "945360" > steam_appid.txt
|
||||
|
||||
- name: Create Epic/MS Store ZIP
|
||||
run: |
|
||||
cd release
|
||||
cd epic
|
||||
zip -r "../EHR.v${{ github.event.inputs.version }}_Epic-Games_Microsoft-Store.zip" .
|
||||
|
||||
- name: Create Steam ZIP
|
||||
run: |
|
||||
cd release
|
||||
echo "945360" > steam_appid.txt
|
||||
cd steam
|
||||
zip -r "../EHR.v${{ github.event.inputs.version }}_Steam.zip" .
|
||||
|
||||
- name: Upload release artifacts
|
||||
@@ -213,3 +226,12 @@ jobs:
|
||||
MODNEWS_API_URL: ${{ secrets.MODNEWS_API_URL }}
|
||||
MODNEWS_API_TOKEN: ${{ secrets.MODNEWS_API_TOKEN }}
|
||||
run: python release_to_modnews.py
|
||||
# -----------------------------
|
||||
# Ping Release Channel
|
||||
# -----------------------------
|
||||
- name: Notify Discord
|
||||
run: |
|
||||
curl -H "Content-Type: application/json" \
|
||||
-X POST \
|
||||
-d "{\"content\": \"<@&1170671991343288391>\nEHR v${{ github.event.inputs.version }}\nhttps://github.com/${{ github.repository }}/releases/tag/v${{ github.event.inputs.version }}\"}" \
|
||||
${{ secrets.DISCORD_RELEASE_WEBHOOK_URL }}
|
||||
Reference in new issue
Block a user