Skip to content

Commit aa2e765

Browse files
committed
SwiftUI too
1 parent f2369e9 commit aa2e765

File tree

2 files changed

+15
-9
lines changed

2 files changed

+15
-9
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,14 +102,19 @@ jobs:
102102
- uses: actions/download-artifact@v4
103103
if: startsWith(github.ref, 'refs/heads/release/')
104104
with:
105-
name: Sentry.xcframework.zip
105+
name: xcframeworks.zip
106106
path: Carthage/
107107
github-token: ${{ secrets.GITHUB_TOKEN }}
108108
run-id: ${{ env.FRAMEWORKRUNID }}
109109

110110
- name: Check XCFramework
111111
if: startsWith(github.ref, 'refs/heads/release/')
112-
run: ls -R Carthage
112+
run: |
113+
ls -R Carthage
114+
if [ ! -f Carthage/Sentry.xcframework.zip ]; then
115+
echo "XCFramework is not available"
116+
exit 1
117+
fi
113118
114119
- name: Build xcframework
115120
if: startsWith(github.ref, 'refs/heads/release/') == false

.github/workflows/release.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121

2222
- name: 'Generate XCFramework'
2323
run: |
24-
./scripts/ci-select-xcode.sh 15.2
25-
mkdir Carthage
26-
cp README.md Carthage/Sentry.xcframework.zip
27-
# make build-xcframework
24+
./scripts/ci-select-xcode.sh 15.2
25+
make build-xcframework
2826
2927
- uses: actions/upload-artifact@v4
3028
with:
31-
name: Sentry.xcframework.zip
32-
path: Carthage/Sentry.xcframework.zip
29+
name: xcframeworks.zip
30+
path: |
31+
Carthage/Sentry.xcframework.zip
32+
Carthage/SentrySwiftUI.xcframework.zip
3333
overwrite: true
3434

3535
job_release:
@@ -45,9 +45,10 @@ jobs:
4545

4646
- uses: actions/download-artifact@v4
4747
with:
48-
name: Sentry.xcframework.zip
48+
name: xcframeworks.zip
4949
path: Carthage/
5050

51+
#update-package-sha.sh uses this env variable to update Package.swift
5152
- run: export GITHUB_RUN_ID=${{ github.run_id }}
5253

5354
- name: Prepare release

0 commit comments

Comments
 (0)