Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 4 additions & 14 deletions .github/workflows/release-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ on:
description: linux, macos-aarch64, macos-x86_64, or windows-x86_64
required: true
type: string
publish-preview:
description: Publish an independent draft preview on a matching protected tag
default: true
type: boolean

permissions:
contents: read
Expand Down Expand Up @@ -42,7 +38,6 @@ jobs:
id: release
env:
RELEASE_PLATFORM: ${{ inputs.platform }}
PUBLISH_PREVIEW: ${{ inputs.publish-preview }}
shell: bash
run: |
./scripts/release-check.sh
Expand All @@ -55,14 +50,9 @@ jobs:
git fetch --no-tags origin main
if [ "$GITHUB_EVENT_NAME" = push ]; then
channel=$(node scripts/release-channel.mjs "$version" "$GITHUB_REF_NAME")
if [ "$PUBLISH_PREVIEW" = true ]; then
test "$channel" = "$RELEASE_PLATFORM-preview" || {
echo "Tag does not match this platform's preview channel." >&2; exit 1;
}
elif [ "$channel" != desktop ]; then
echo "Complete releases require the synchronized desktop tag." >&2
exit 1
fi
test "$channel" = "$RELEASE_PLATFORM-preview" || {
echo "Tag does not match this platform's preview channel." >&2; exit 1;
}
if ! git merge-base --is-ancestor "$GITHUB_SHA" origin/main; then
echo "Release tag must point to a commit on main." >&2
exit 1
Expand Down Expand Up @@ -324,7 +314,7 @@ jobs:
# Unselected builders are skipped. Override the implicit success() guard,
# but require the selected builder and preflight to succeed, never cancel.
if: >-
${{ !cancelled() && inputs.publish-preview && github.event_name == 'push' &&
${{ !cancelled() && github.event_name == 'push' &&
needs.preflight.result == 'success' &&
((inputs.platform == 'linux' && needs.linux.result == 'success') ||
(startsWith(inputs.platform, 'macos-') && needs.macos.result == 'success') ||
Expand Down
245 changes: 0 additions & 245 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion docs/APPLE_SIGNING.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ release notarization”; use it as `APPLE_PASSWORD`, never your primary password

## 5. Enter the values directly in GitHub

Matching Mist's [workflow](../.github/workflows/release.yml), add these under
Matching Mist's [platform workflow](../.github/workflows/release-platform.yml), add these under
**Settings → Environments → release-signing → Environment secrets**; retain
the reviewer protection in [DISTRIBUTION.md](DISTRIBUTION.md).

Expand Down
Loading
Loading