@@ -54,54 +54,54 @@ jobs:
5454 retention-days : 1
5555
5656 build_macos :
57- if : github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]')
58- needs : build_cli
59- runs-on : macos-latest
60- steps :
61- - uses : actions/checkout@v4
62- with :
63- fetch-depth : 0
64-
65- - uses : actions/download-artifact@v4
66- with :
67- name : guppy
68- path : ./cli/dist/guppy
57+ if : github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, '[build]')
58+ needs : build_cli
59+ runs-on : macos-latest
60+ steps :
61+ - uses : actions/checkout@v4
62+ with :
63+ fetch-depth : 0
64+
65+ - uses : actions/download-artifact@v4
66+ with :
67+ name : guppy
68+ path : ./cli/dist/guppy
6969
70- - name : Sign guppy binary
71- run : codesign -s - ./cli/dist/guppy
70+ - name : Sign guppy binary
71+ run : codesign -s - ./cli/dist/guppy
7272
73- - name : Build macOS archive
74- env :
75- VERSION : ${{ needs.build_cli.outputs.VERSION }}
76- BUILD : ${{ needs.build_cli.outputs.BUILD }}
77- run : make build-macos
73+ - name : Build macOS archive
74+ env :
75+ VERSION : ${{ needs.build_cli.outputs.VERSION }}
76+ BUILD : ${{ needs.build_cli.outputs.BUILD }}
77+ run : make build-macos
7878
79- - name : Export macOS archive
80- run : |
81- xcodebuild \
82- -exportArchive \
83- -archivePath ./macos/build/guppy.xcarchive \
84- -exportPath ./macos/build \
85- -exportOptionsPlist ./macos/ExportOptions.plist
86-
87- - name : Create macOS installer
88- run : |
89- productbuild \
90- --component ./macos/build/guppy.app /Applications \
91- ./macos/build/guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
79+ - name : Export macOS archive
80+ run : |
81+ xcodebuild \
82+ -exportArchive \
83+ -archivePath ./macos/build/guppy.xcarchive \
84+ -exportPath ./macos/build \
85+ -exportOptionsPlist ./macos/ExportOptions.plist
86+
87+ - name : Create macOS installer
88+ run : |
89+ productbuild \
90+ --component ./macos/build/guppy.app /Applications \
91+ ./macos/build/guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
9292
93- - name : Notarize macOS installer
94- run : |
95- xcrun notarytool submit \
96- --team-id '' \
97- --apple-id ${{ secrets.NOTARY_USERNAME }} \
98- --password ${{ secrets.NOTARY_PASSWORD }} \
99- --wait \
100- ./macos/build/guppy.pkg
93+ - name : Notarize macOS installer
94+ run : |
95+ xcrun notarytool submit \
96+ --team-id '' \
97+ --apple-id ${{ secrets.NOTARY_USERNAME }} \
98+ --password ${{ secrets.NOTARY_PASSWORD }} \
99+ --wait \
100+ ./macos/build/guppy.pkg
101101
102- - name : Upload macOS app
103- uses : actions/upload-artifact@v4
104- with :
105- name : guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
106- path : ./macos/build/guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
107- retention-days : 1
102+ - name : Upload macOS app
103+ uses : actions/upload-artifact@v4
104+ with :
105+ name : guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
106+ path : ./macos/build/guppy-${{ needs.build_cli.outputs.VERSION }}.pkg
107+ retention-days : 1
0 commit comments