File tree 1 file changed +45
-0
lines changed 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : upload DMG
2
+
3
+ on :
4
+ workflow_dispatch :
5
+ inputs :
6
+ pharo-launcher-version :
7
+ type : string
8
+ description : ' The Pharo Launcher version number'
9
+ arm-signed-archive-url :
10
+ type : string
11
+ description : ' The Pharo Launcher archive URL containing the signed App for ARM architecture'
12
+ signed-archive-url :
13
+ type : string
14
+ description : ' The Pharo Launcher archive URL containing the signed App for Intel architecture'
15
+
16
+ jobs :
17
+ upload-dmg :
18
+ runs-on : macos-latest
19
+ strategy :
20
+ matrix :
21
+ arch : [64, arm64]
22
+
23
+ steps :
24
+ - uses : actions/checkout@v4
25
+ with :
26
+ fetch-depth : 0
27
+
28
+ - name : Build ${{ matrix.arch }} mac os package
29
+ run : |
30
+ ARCHITECTURE=${{ matrix.arch }} VERSION=${{ github.event.inputs.pharo-launcher-version }} ./build.sh mac-package
31
+ curl -O $APP_URL
32
+ tar -xf *.tgz
33
+ find . -name PharoLauncher.app -exec mv {} . \;
34
+ VERSION=$VERSION_NUMBER APP_NAME=PharoLauncher SHOULD_SIGN=false ./mac/build-dmg.sh
35
+ local generated_dmg
36
+ generated_dmg=$(echo *.dmg)
37
+ mv "$generated_dmg" "PharoLauncher-$VERSION_NUMBER.dmg"
38
+ generated_dmg=$(echo *.dmg)
39
+ md5 "$generated_dmg" > "$generated_dmg.md5sum"
40
+
41
+ - uses : actions/upload-artifact@v4
42
+ with :
43
+ name : PharoLauncher-mac-installer-${{ github.event.inputs.pharo-launcher-version }}-${{ matrix.arch == '64' && 'x64' || matrix.arch }}
44
+ path : PharoLauncher-*.dmg
45
+
You can’t perform that action at this time.
0 commit comments