mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Refactor release_without_crowdin workflow to include signing step
This commit is contained in:
1 parent
13329ef36a
commit
8771601a2c
1 file changed
+71
-21
@@ -36,6 +36,7 @@ jobs:
|
||||
# ---------------------------------------------------------
|
||||
build-control-panel:
|
||||
runs-on: windows-latest
|
||||
needs: [prepare-build]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -75,20 +76,75 @@ jobs:
|
||||
path: build\EHR_Control-Panel_BETA.exe
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# 3) Package everything on Linux
|
||||
# 3) Sign binaries using SignPath
|
||||
# ---------------------------------------------------------
|
||||
package:
|
||||
sign:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build-ehr, build-control-panel]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download EHR artifact
|
||||
- name: Download EHR
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ehr
|
||||
path: artifacts/ehr
|
||||
path: signing
|
||||
|
||||
- name: Download Control Panel
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: control-panel
|
||||
path: signing
|
||||
|
||||
- name: Create SignPath ZIP
|
||||
run: |
|
||||
cd signing
|
||||
zip ../signpath-input.zip EHR.dll EHR_Control-Panel_BETA.exe
|
||||
|
||||
- name: Upload unsigned artifact
|
||||
id: upload-unsigned-artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: signpath-input
|
||||
path: signpath-input.zip
|
||||
|
||||
- name: Submit signing request
|
||||
uses: signpath/github-action-submit-signing-request@v2
|
||||
with:
|
||||
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
|
||||
organization-id: 298f5e96-d02b-40b5-88f6-32bddafcd47d
|
||||
project-slug: EndlessHostRoles
|
||||
signing-policy-slug: test-signing
|
||||
artifact-configuration-slug: initial
|
||||
github-artifact-id: ${{ steps.upload-unsigned-artifact.outputs.artifact-id }}
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: signed
|
||||
|
||||
- name: Extract signed ZIP
|
||||
run: |
|
||||
mkdir extracted
|
||||
unzip signed/*.zip -d extracted
|
||||
|
||||
- name: Upload signed binaries
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: signed-binaries
|
||||
path: extracted/*
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# 4) Package everything on Linux
|
||||
# ---------------------------------------------------------
|
||||
package:
|
||||
runs-on: ubuntu-latest
|
||||
needs: [sign]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Download signed binaries
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: signed-binaries
|
||||
path: artifacts/signed
|
||||
|
||||
- name: Prepare release folders
|
||||
run: |
|
||||
@@ -106,8 +162,8 @@ jobs:
|
||||
|
||||
- name: Copy EHR dll to plugins
|
||||
run: |
|
||||
cp artifacts/ehr/EHR.dll epic/BepInEx/plugins/
|
||||
cp artifacts/ehr/EHR.dll steam/BepInEx/plugins/
|
||||
cp artifacts/signed/EHR.dll epic/BepInEx/plugins/
|
||||
cp artifacts/signed/EHR.dll steam/BepInEx/plugins/
|
||||
|
||||
- name: Download modded regions DLL
|
||||
run: |
|
||||
@@ -120,7 +176,7 @@ jobs:
|
||||
cp -r packaging/* steam/
|
||||
|
||||
- name: Steam App ID
|
||||
run : echo "945360" > steam_appid.txt
|
||||
run : echo "945360" > steam/steam_appid.txt
|
||||
|
||||
- name: Create Epic/MS Store ZIP
|
||||
run: |
|
||||
@@ -139,7 +195,7 @@ jobs:
|
||||
path: ./EHR*.zip
|
||||
|
||||
# ---------------------------------------------------------
|
||||
# 4) Create GitHub Release
|
||||
# 5) Create GitHub Release
|
||||
# ---------------------------------------------------------
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -157,17 +213,11 @@ jobs:
|
||||
name: final-zips
|
||||
path: release-artifacts/zips
|
||||
|
||||
- name: Download EHR.dll
|
||||
- name: Download signed binaries
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: ehr
|
||||
path: release-artifacts/ehr
|
||||
|
||||
- name: Download Control Panel EXE
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: control-panel
|
||||
path: release-artifacts/control-panel
|
||||
name: signed-binaries
|
||||
path: release-artifacts/signed
|
||||
|
||||
# -----------------------------
|
||||
# Create GitHub Release
|
||||
@@ -181,8 +231,8 @@ jobs:
|
||||
body_path: CHANGELOG.md
|
||||
files: |
|
||||
release-artifacts/zips/*
|
||||
release-artifacts/ehr/EHR.dll
|
||||
release-artifacts/control-panel/*.exe
|
||||
release-artifacts/signed/EHR.dll
|
||||
release-artifacts/signed/*.exe
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
# -----------------------------
|
||||
|
||||
Reference in new issue
Block a user