Skip to content

Commit 893e80f

Browse files
authored
Update build_ipa.yml
1 parent 8774e1a commit 893e80f

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

.github/workflows/build_ipa.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Build Alpha IPA
1+
name: Build Unsigned Debug IPA
22

33
on:
44
push:
@@ -7,10 +7,13 @@ on:
77
branches: [ "main" ]
88
workflow_dispatch:
99

10+
permissions:
11+
contents: write
12+
1013
jobs:
1114
build:
1215
name: Build Debug IPA
13-
runs-on: macos-latest
16+
runs-on: macos-latest
1417

1518
steps:
1619
- name: Checkout
@@ -19,7 +22,7 @@ jobs:
1922
- name: Setup Xcode (latest stable)
2023
uses: maxim-lobanov/setup-xcode@v1
2124
with:
22-
xcode-version: 'latest-stable'
25+
xcode-version: 'latest-stable'
2326

2427
- name: Archive Build (Debug, Unsigned)
2528
run: |
@@ -39,10 +42,7 @@ jobs:
3942
4043
- name: Create IPA from Archive
4144
run: |
42-
# Copy the .app from the archive
4345
cp -R build/StikDebug.xcarchive/Products/Applications/StikDebug.app .
44-
45-
# Package the app into an IPA
4646
mkdir -p Payload
4747
cp -R StikDebug.app Payload/
4848
zip -r StikDebug.ipa Payload
@@ -56,12 +56,15 @@ jobs:
5656
retention-days: 90
5757

5858
- name: Create or Update GitHub Release (GitHub-Alpha)
59+
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
5960
uses: softprops/action-gh-release@v2
6061
with:
6162
tag_name: GitHub-Alpha
6263
name: GitHub-Alpha
63-
draft: false
6464
prerelease: true
65-
files: StikDebug.ipa
65+
generate_release_notes: true
66+
target_commitish: ${{ github.sha }}
67+
files: |
68+
StikDebug.ipa
6669
env:
6770
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)