diff --git a/.github/workflows/release-cut.yml b/.github/workflows/release-cut.yml index 3f505ca75..26de7544d 100644 --- a/.github/workflows/release-cut.yml +++ b/.github/workflows/release-cut.yml @@ -894,7 +894,7 @@ jobs: APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }} - name: Publish release artifacts (Linux) - if: matrix.platform == 'linux' + if: matrix.platform == 'linux-x64' || matrix.platform == 'linux-arm64' uses: nick-fields/retry@v4 with: timeout_minutes: 30 diff --git a/config/scripts/package-electron-runtime-contract.test.mjs b/config/scripts/package-electron-runtime-contract.test.mjs index f24685635..dea2b89ad 100644 --- a/config/scripts/package-electron-runtime-contract.test.mjs +++ b/config/scripts/package-electron-runtime-contract.test.mjs @@ -86,6 +86,21 @@ describe('Electron runtime package contract', () => { ) }) + it('publishes both Linux release matrix entries', () => { + const releaseWorkflow = readFileSync( + join(projectDir, '.github/workflows/release-cut.yml'), + 'utf8' + ) + const parsedWorkflow = parse(releaseWorkflow) + const publishLinuxStep = parsedWorkflow.jobs.build.steps.find( + (step) => step.name === 'Publish release artifacts (Linux)' + ) + + expect(publishLinuxStep.if).toContain("matrix.platform == 'linux-x64'") + expect(publishLinuxStep.if).toContain("matrix.platform == 'linux-arm64'") + expect(publishLinuxStep.with.command).toBe('${{ matrix.release_command }}') + }) + it('lets release-cut tag a version that is already present on main', () => { const releaseWorkflow = readFileSync( join(projectDir, '.github/workflows/release-cut.yml'),