Skip to content

Commit 4e78d7b

Browse files
committed
Add workflow to create a draft release with IPA
1 parent 136085b commit 4e78d7b

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/release.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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

0 commit comments

Comments
 (0)