fix: publish linux release matrix artifacts (#6111)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user