|
21 | 21 | SFTP_BASE_PATH: downloads/ModVerify/ |
22 | 22 | BRANCH_NAME: ${{ github.event.inputs.branch || 'stable' }} |
23 | 23 |
|
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. |
26 | 25 | # |
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 |
39 | 36 |
|
40 | 37 | jobs: |
41 | 38 |
|
@@ -100,24 +97,22 @@ jobs: |
100 | 97 | - name: Publish self-update release |
101 | 98 | shell: pwsh |
102 | 99 | 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" |
121 | 116 |
|
122 | 117 | # Deploy .NET Core and .NET Framework apps to Github |
123 | 118 | - name: Create NET Core .zip |
|
0 commit comments