File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,18 +2,18 @@ name: Build Debug IPA
22
33on :
44 push :
5- branches : [ "main", "semi-rewrite" ]
5+ branches : [ "main" ]
66 pull_request :
7- branches : [ "main", "semi-rewrite" ]
7+ branches : [ "main" ]
88 workflow_dispatch :
99
1010permissions :
11- contents : write
11+ contents : read
1212
1313jobs :
14- build_and_release :
15- name : Build & Release IPA
16- runs-on : macos-latest
14+ build :
15+ name : Build IPA
16+ runs-on : macos-latest
1717 env :
1818 UPLOAD_IPA : ${{ vars.UPLOAD_IPA || 'true' }}
1919
2424 - name : 2. Configure Xcode Environment
2525 uses : maxim-lobanov/setup-xcode@v1
2626 with :
27- xcode-version : ' 26.0.1'
28-
27+ xcode-version : ' 26.0.1'
28+
2929 - name : 3. Compile Project Archive
3030 run : |
3131 xcodebuild clean archive \
5757 name : StikDebug-Debug.ipa
5858 path : StikDebug.ipa
5959 retention-days : 90
60-
61- - name : 6. Extract Version Information
62- id : version
63- run : |
64- VERSION=$(sed -n 's/.*MARKETING_VERSION = \(.*\);/\1/p' StikDebug.xcodeproj/project.pbxproj | head -1 | xargs)
65- echo "app_version=$VERSION" >> "$GITHUB_OUTPUT"
66-
67- - name : 7. Deploy to Nightly Release
68- if : env.UPLOAD_IPA == 'true' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref == 'refs/heads/main'
69- uses : softprops/action-gh-release@v2
70- with :
71- tag_name : Nightly
72- name : " Nightly Build - v${{ steps.version.outputs.app_version }}"
73- prerelease : true
74- body : |
75- Built from commit [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
76- target_commitish : ${{ github.sha }}
77- files : |
78- StikDebug.ipa
79- env :
80- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments