Skip to content

Commit 8ff6078

Browse files
committed
Update build.yml
1 parent 99f2db2 commit 8ff6078

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@ name: Build
33
on:
44
push:
55
branches: [main]
6+
tags: ['*']
67
pull_request:
78
branches: [main]
89
workflow_dispatch:
910

11+
permissions:
12+
contents: write
13+
1014
jobs:
1115
build:
1216
name: Build XCFramework
@@ -42,9 +46,19 @@ jobs:
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

0 commit comments

Comments
 (0)