File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,10 +3,14 @@ name: Build
33on :
44 push :
55 branches : [main]
6+ tags : ['*']
67 pull_request :
78 branches : [main]
89 workflow_dispatch :
910
11+ permissions :
12+ contents : write
13+
1014jobs :
1115 build :
1216 name : Build XCFramework
4246 -framework build/StikJIT-iOS.xcarchive/Products/Library/Frameworks/StikJIT.framework \
4347 -output StikJIT.xcframework
4448
45- - name : Upload XCFramework
49+ - name : Zip XCFramework
50+ run : zip -ry StikJIT.xcframework.zip StikJIT.xcframework
51+
52+ - name : Upload artifact
4653 uses : actions/upload-artifact@v4
4754 with :
4855 name : StikJIT.xcframework
49- path : StikJIT.xcframework
56+ path : StikJIT.xcframework.zip
5057 if-no-files-found : error
58+
59+ - name : Create release
60+ if : startsWith(github.ref, 'refs/tags/')
61+ uses : softprops/action-gh-release@v2
62+ with :
63+ files : StikJIT.xcframework.zip
64+ generate_release_notes : true
You can’t perform that action at this time.
0 commit comments