Skip to content

Commit 504f7ce

Browse files
committed
fix: update release
1 parent 896cbcc commit 504f7ce

File tree

1 file changed

+84
-101
lines changed

1 file changed

+84
-101
lines changed

.github/workflows/release.yml

Lines changed: 84 additions & 101 deletions
Original file line numberDiff line numberDiff line change
@@ -100,108 +100,91 @@ jobs:
100100
fi
101101
102102
# Створюємо базовий Info.plist для XCFramework
103-
cat > ios-release/PerchEyeSDK-iOS.xcframework/Info.plist << 'PLIST_EOF'
104-
<?xml version="1.0" encoding="UTF-8"?>
105-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
106-
<plist version="1.0">
107-
<dict>
108-
<key>AvailableLibraries</key>
109-
<array>
110-
<dict>
111-
<key>LibraryIdentifier</key>
112-
<string>ios-arm64</string>
113-
<key>LibraryPath</key>
114-
<string>PerchEyeFramework.framework</string>
115-
<key>SupportedArchitectures</key>
116-
<array>
117-
<string>arm64</string>
118-
</array>
119-
<key>SupportedPlatform</key>
120-
<string>ios</string>
121-
</dict>
122-
<dict>
123-
<key>LibraryIdentifier</key>
124-
<string>ios-arm64_x86_64-simulator</string>
125-
<key>LibraryPath</key>
126-
<string>PerchEyeFramework.framework</string>
127-
<key>SupportedArchitectures</key>
128-
<array>
129-
<string>arm64</string>
130-
<string>x86_64</string>
131-
</array>
132-
<key>SupportedPlatform</key>
133-
<string>ios</string>
134-
<key>SupportedPlatformVariant</key>
135-
<string>simulator</string>
136-
</dict>
137-
</array>
138-
<key>CFBundlePackageType</key>
139-
<string>XFWK</string>
140-
<key>XCFrameworkFormatVersion</key>
141-
<string>1.0</string>
142-
</dict>
143-
</plist>
144-
PLIST_EOF
145-
146-
echo "⚠️ Created minimal framework structure (may require additional setup)"
147-
fi
148-
149-
# Пакуємо XCFramework
150-
cd ios-release
151-
zip -r PerchEyeSDK-iOS.xcframework.zip PerchEyeSDK-iOS.xcframework/
103+
echo '<?xml version="1.0" encoding="UTF-8"?>' > ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
104+
echo '<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
105+
echo '<plist version="1.0">' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
106+
echo '<dict>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
107+
echo ' <key>AvailableLibraries</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
108+
echo ' <array>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
109+
echo ' <dict>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
110+
echo ' <key>LibraryIdentifier</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
111+
echo ' <string>ios-arm64</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
112+
echo ' <key>LibraryPath</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
113+
echo ' <string>PerchEyeFramework.framework</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
114+
echo ' <key>SupportedArchitectures</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
115+
echo ' <array>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
116+
echo ' <string>arm64</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
117+
echo ' </array>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
118+
echo ' <key>SupportedPlatform</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
119+
echo ' <string>ios</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
120+
echo ' </dict>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
121+
echo ' </array>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
122+
echo ' <key>CFBundlePackageType</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
123+
echo ' <string>XFWK</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
124+
echo ' <key>XCFrameworkFormatVersion</key>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
125+
echo ' <string>1.0</string>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
126+
echo '</dict>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
127+
echo '</plist>' >> ios-release/PerchEyeSDK-iOS.xcframework/Info.plist
128+
129+
echo "⚠️ Created minimal framework structure (may require additional setup)"
130+
fi
131+
132+
# Пакуємо XCFramework
133+
cd ios-release
134+
zip -r PerchEyeSDK-iOS.xcframework.zip PerchEyeSDK-iOS.xcframework/
152135
153-
- name: Create iOS Release
154-
uses: softprops/action-gh-release@v1
155-
with:
156-
tag_name: ios-v1.0.0
157-
name: iOS SDK v1.0.0
158-
body: |
159-
# iOS SDK Release v1.0.0
160-
161-
**What's included:**
162-
- `PerchEyeSDK-iOS.xcframework.zip` - iOS XCFramework (ready to use)
163-
164-
**How to use:**
165-
1. Download `PerchEyeSDK-iOS.xcframework.zip`
166-
2. Extract the zip file
167-
3. Drag `PerchEyeSDK-iOS.xcframework` into your Xcode project
168-
4. In target settings, set framework to "Embed & Sign"
169-
5. Import in your Swift code: `import PerchEyeFramework`
170-
171-
**Supported platforms:**
172-
- iOS 14.0+ (Device: arm64)
173-
- iOS Simulator 14.0+ (arm64, x86_64)
174-
175-
**Build from commit:** ${{ github.sha }}
176-
files: |
177-
ios-release/PerchEyeSDK-iOS.xcframework.zip
178-
env:
179-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
136+
- name: Create iOS Release
137+
uses: softprops/action-gh-release@v1
138+
with:
139+
tag_name: ios-v1.0.0
140+
name: iOS SDK v1.0.0
141+
body: |
142+
# iOS SDK Release v1.0.0
143+
144+
**What's included:**
145+
- `PerchEyeSDK-iOS.xcframework.zip` - iOS XCFramework (ready to use)
146+
147+
**How to use:**
148+
1. Download `PerchEyeSDK-iOS.xcframework.zip`
149+
2. Extract the zip file
150+
3. Drag `PerchEyeSDK-iOS.xcframework` into your Xcode project
151+
4. In target settings, set framework to "Embed & Sign"
152+
5. Import in your Swift code: `import PerchEyeFramework`
153+
154+
**Supported platforms:**
155+
- iOS 14.0+ (Device: arm64)
156+
- iOS Simulator 14.0+ (arm64, x86_64)
157+
158+
**Build from commit:** ${{ github.sha }}
159+
files: |
160+
ios-release/PerchEyeSDK-iOS.xcframework.zip
161+
env:
162+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
180163

181-
docs-release:
182-
runs-on: ubuntu-latest
183-
steps:
184-
- uses: actions/checkout@v4
164+
docs-release:
165+
runs-on: ubuntu-latest
166+
steps:
167+
- uses: actions/checkout@v4
185168

186-
- name: Deploy to GitHub Pages
187-
uses: peaceiris/actions-gh-pages@v3
188-
with:
189-
github_token: ${{ secrets.GITHUB_TOKEN }}
190-
publish_dir: ./docs
169+
- name: Deploy to GitHub Pages
170+
uses: peaceiris/actions-gh-pages@v3
171+
with:
172+
github_token: ${{ secrets.GITHUB_TOKEN }}
173+
publish_dir: ./docs
191174

192-
- name: Create Docs Release
193-
uses: softprops/action-gh-release@v1
194-
with:
195-
tag_name: docs-v1.0.0
196-
name: Documentation v1.0.0
197-
body: |
198-
# Documentation v1.0.0
199-
200-
📖 **Live Documentation:** https://onix-systems.github.io/PerchEye-SDK-Multiplatform
201-
202-
Visit the link above for the latest documentation.
203-
No files attached - documentation is available online only.
204-
205-
**Updated from commit:** ${{ github.sha }}
206-
env:
207-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
175+
- name: Create Docs Release
176+
uses: softprops/action-gh-release@v1
177+
with:
178+
tag_name: docs-v1.0.0
179+
name: Documentation v1.0.0
180+
body: |
181+
# Documentation v1.0.0
182+
183+
📖 **Live Documentation:** https://onix-systems.github.io/PerchEye-SDK-Multiplatform
184+
185+
Visit the link above for the latest documentation.
186+
No files attached - documentation is available online only.
187+
188+
**Updated from commit:** ${{ github.sha }}
189+
env:
190+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)