File tree Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Expand file tree Collapse file tree 1 file changed +44
-0
lines changed Original file line number Diff line number Diff line change 1+ # Based on
2+ # https://github.com/theos/sdks/blob/ca52092/.github/workflows/release.yml
3+ name : Release
4+
5+ on :
6+ push :
7+ branches :
8+ - main
9+
10+ jobs :
11+ release :
12+ # needed to be able to create a Release
13+ permissions :
14+ contents : write
15+ runs-on : macos-14
16+ steps :
17+ - name : Checkout repo
18+ uses : actions/checkout@v4
19+ with :
20+ submodules : recursive
21+
22+ - name : Archive iOS app
23+ run : |
24+ xcodebuild \
25+ CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO \
26+ archive -scheme HeaderViewer \
27+ -destination 'generic/platform=iOS' \
28+ -archivePath ios_archive \
29+ -quiet
30+
31+ - name : Package iOS app
32+ run : |
33+ mv ios_archive.xcarchive/Products/Applications Payload
34+ zip -yqr HeaderViewer.ipa Payload
35+
36+ - name : Publish release
37+ env :
38+ GH_TOKEN : ${{ github.token }}
39+ run : |
40+ TAG="auto-${GITHUB_SHA:0:7}"
41+ gh release create "${TAG}" --draft \
42+ --title "Automatic Release" \
43+ --target "${GITHUB_SHA}" \
44+ HeaderViewer.ipa
You can’t perform that action at this time.
0 commit comments