Skip to content

Commit 17924ce

Browse files
committed
update release
1 parent 50a3b60 commit 17924ce

2 files changed

Lines changed: 28 additions & 33 deletions

File tree

.github/workflows/release.yml

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,18 @@ env:
2121
SFTP_BASE_PATH: downloads/ModVerify/
2222
BRANCH_NAME: ${{ github.event.inputs.branch || 'stable' }}
2323

24-
# ---- Optional release knobs -------------------------------------------------------------
25-
# Valid combinations: none | (A) only | (A) + (B). (B) on its own is rejected.
24+
# Migration-release values. Leave empty for a normal release; populate to enable.
2625
#
27-
# (A) Dual-publish to a next-generation channel. Use for URL migrations — the next-gen
28-
# channel gets seeded alongside the primary path. Pair the two lines below with the
29-
# matching -NextOrigin / -NextSftpBasePath args in the deploy step.
30-
# NEXT_ORIGIN_BASE: https://republicatwar.com/downloads/ModVerify/v2
31-
# NEXT_SFTP_BASE_PATH: downloads/ModVerify/v2/
32-
#
33-
# (B) Override the updater binary used for the PRIMARY deploy. Use for releases that ship
34-
# a new external-updater CLI: deployed clients still execute the previously-deployed
35-
# binary, so the manifest must keep listing that older binary. Pair with the matching
36-
# -CompatibilityUpdaterExePath arg in the deploy step. Requires (A) — the new updater
37-
# needs a next-gen channel to migrate clients to.
38-
# COMPAT_UPDATER: tools/legacy/AnakinRaW.ExternalUpdater.exe
26+
# Origin URL of the next-generation channel, written into the manifest's componentOriginInfo.
27+
NEXT_ORIGIN_BASE: https://republicatwar.com/downloads/ModVerify/v2
28+
29+
# SFTP path the next-generation channel uploads to. Set together with NEXT_ORIGIN_BASE.
30+
NEXT_SFTP_BASE_PATH: downloads/ModVerify/v2/
31+
32+
# Previously-deployed updater used in place of the build-output one for the primary deploy.
33+
# Only the old-gen manifest lists this binary; the next-gen manifest still uses the build-output updater.
34+
# Requires NEXT_ORIGIN_BASE + NEXT_SFTP_BASE_PATH to be set.
35+
COMPAT_UPDATER: tools/v1/AnakinRaW.ExternalUpdater.exe
3936

4037
jobs:
4138

@@ -100,24 +97,22 @@ jobs:
10097
- name: Publish self-update release
10198
shell: pwsh
10299
run: |
103-
& ${{ env.PUBLISH_SCRIPT }} `
104-
-AppExePath "./releases/net481/${{ env.TOOL_EXE }}" `
105-
-UpdaterExePath "./releases/net481/${{ env.UPDATER_EXE }}" `
106-
-EmbeddedTrustCertPath "${{ env.EMBEDDED_TRUST_CERT }}" `
107-
-Origin "${{ env.ORIGIN_BASE }}" `
108-
-SftpBasePath "${{ env.SFTP_BASE_PATH }}" `
109-
-Branch "${{ env.BRANCH_NAME }}" `
110-
-SigningPfxBase64 "${{ secrets.UPDATER_SIGNING_PFX_B64 }}" `
111-
-SigningPfxPassword "${{ secrets.UPDATER_SIGNING_PFX_PASSWORD }}" `
112-
-SftpHost "republicatwar.com" `
113-
-SftpPort 1579 `
114-
-SftpUser "${{ secrets.SFTP_USER }}" `
115-
-SftpPassword "${{ secrets.SFTP_PASSWORD }}"
116-
# (A) Dual-publish — uncomment with NEXT_ORIGIN_BASE / NEXT_SFTP_BASE_PATH above.
117-
# -NextOrigin "${{ env.NEXT_ORIGIN_BASE }}" `
118-
# -NextSftpBasePath "${{ env.NEXT_SFTP_BASE_PATH }}" `
119-
# (B) Compatibility updater — uncomment with COMPAT_UPDATER above.
120-
# -CompatibilityUpdaterExePath "${{ env.COMPAT_UPDATER }}"
100+
& $env:PUBLISH_SCRIPT `
101+
-AppExePath "./releases/net481/$env:TOOL_EXE" `
102+
-UpdaterExePath "./releases/net481/$env:UPDATER_EXE" `
103+
-EmbeddedTrustCertPath "$env:EMBEDDED_TRUST_CERT" `
104+
-Origin "$env:ORIGIN_BASE" `
105+
-SftpBasePath "$env:SFTP_BASE_PATH" `
106+
-Branch "$env:BRANCH_NAME" `
107+
-SigningPfxBase64 "${{ secrets.UPDATER_SIGNING_PFX_B64 }}" `
108+
-SigningPfxPassword "${{ secrets.UPDATER_SIGNING_PFX_PASSWORD }}" `
109+
-SftpHost "republicatwar.com" `
110+
-SftpPort 1579 `
111+
-SftpUser "${{ secrets.SFTP_USER }}" `
112+
-SftpPassword "${{ secrets.SFTP_PASSWORD }}" `
113+
-NextOrigin "$env:NEXT_ORIGIN_BASE" `
114+
-NextSftpBasePath "$env:NEXT_SFTP_BASE_PATH" `
115+
-CompatibilityUpdaterExePath "$env:COMPAT_UPDATER"
121116
122117
# Deploy .NET Core and .NET Framework apps to Github
123118
- name: Create NET Core .zip

modules/ModdingToolBase

0 commit comments

Comments
 (0)