mirror of
https://github.com/StikDebug/StikJIT.git
synced 2026-10-15 20:10:31 +00:00
Update build.yml
This commit is contained in:
parent
99f2db2161
commit
8ff6078541
1 changed files with 16 additions and 2 deletions
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
|
|
@ -3,10 +3,14 @@ name: Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
tags: ['*']
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build XCFramework
|
name: Build XCFramework
|
||||||
|
|
@ -42,9 +46,19 @@ jobs:
|
||||||
-framework build/StikJIT-iOS.xcarchive/Products/Library/Frameworks/StikJIT.framework \
|
-framework build/StikJIT-iOS.xcarchive/Products/Library/Frameworks/StikJIT.framework \
|
||||||
-output StikJIT.xcframework
|
-output StikJIT.xcframework
|
||||||
|
|
||||||
- name: Upload XCFramework
|
- name: Zip XCFramework
|
||||||
|
run: zip -ry StikJIT.xcframework.zip StikJIT.xcframework
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: StikJIT.xcframework
|
name: StikJIT.xcframework
|
||||||
path: StikJIT.xcframework
|
path: StikJIT.xcframework.zip
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
|
- name: Create release
|
||||||
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
uses: softprops/action-gh-release@v2
|
||||||
|
with:
|
||||||
|
files: StikJIT.xcframework.zip
|
||||||
|
generate_release_notes: true
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue