Skip to content

Commit a89577a

Browse files
lint
1 parent 36e0f1e commit a89577a

File tree

1 file changed

+17
-18
lines changed

1 file changed

+17
-18
lines changed

.github/workflows/release-upload-xcframework.yml

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,28 +5,27 @@ on:
55
- release/**
66

77
jobs:
8-
# Craft uses the Git commit hash to query GitHub Actions for artifacts
9-
# uploaded in a workflow run associated with that commit.
10-
#
11-
# To support this, we download the XCFramework already built and uploaded
12-
# in release.yml (triggered via workflow_dispatch), and reupload it here.
13-
# This associates it with the new commit in the release branch, which is
14-
# created by getsentry/action-prepare-release in release.yml.
15-
#
16-
# This is necessary because Swift Package Manager requires a checksum for
17-
# XCFrameworks, creating a chicken-and-egg problem: we need the XCFramework
18-
# to generate the checksum, but we also need the checksum to update Package.swift.
19-
#
20-
# The sequence is:
21-
# 1. Build the XCFrameworks in release.yml.
22-
# 2. getsentry/action-prepare-release updates Package.swift with the checksum.
23-
# 3. Upload the XCFrameworks again here so Craft can find it by commit.
24-
8+
# Craft uses the Git commit hash to query GitHub Actions for artifacts
9+
# uploaded in a workflow run associated with that commit.
10+
#
11+
# To support this, we download the XCFramework already built and uploaded
12+
# in release.yml (triggered via workflow_dispatch), and reupload it here.
13+
# This associates it with the new commit in the release branch, which is
14+
# created by getsentry/action-prepare-release in release.yml.
15+
#
16+
# This is necessary because Swift Package Manager requires a checksum for
17+
# XCFrameworks, creating a chicken-and-egg problem: we need the XCFramework
18+
# to generate the checksum, but we also need the checksum to update Package.swift.
19+
#
20+
# The sequence is:
21+
# 1. Build the XCFrameworks in release.yml.
22+
# 2. getsentry/action-prepare-release updates Package.swift with the checksum.
23+
# 3. Upload the XCFrameworks again here so Craft can find it by commit.
2524
upload-xcframeworks:
2625
runs-on: ubuntu-latest
2726
steps:
2827
- uses: actions/checkout@v4
29-
28+
3029
- name: Get Release workflow run ID
3130
run: echo "FRAMEWORK_RUN_ID=$(./scripts/xcframework-generated-run.sh)" >> $GITHUB_ENV
3231

0 commit comments

Comments
 (0)