20
20
21
21
push :
22
22
tags :
23
- - v*rc *
23
+ - v*pre *
24
24
25
25
concurrency :
26
26
group : installer-macos-${{ github.ref }}
@@ -29,7 +29,7 @@ concurrency:
29
29
name : Create macOS App Bundle and DMG
30
30
31
31
env :
32
- IS_RC : ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
32
+ IS_PRE : ${{ github.event_name == 'push' && github.ref_type == 'tag' }}
33
33
34
34
jobs :
35
35
matrix_prep :
40
40
steps :
41
41
- id : set-matrix
42
42
run : |
43
- if [[ ${GITHUB_EVENT_NAME} == 'release' || ${IS_RC } == 'true' ]]; then
43
+ if [[ ${GITHUB_EVENT_NAME} == 'release' || ${IS_PRE } == 'true' ]]; then
44
44
build_type=$(echo "['Full', 'Lite']")
45
45
else
46
46
build_type=$(echo "['Full']")
@@ -103,10 +103,10 @@ jobs:
103
103
- name : Build Application Bundle
104
104
run : ${pythonLocation}/bin/python setup.py ${LITE_FLAG} --dist-dir ${DISTDIR}
105
105
- name : Create Keychain
106
- if : ${{github.event_name == 'release' || env.IS_RC == 'true'}}
106
+ if : ${{github.event_name == 'release' || env.IS_PRE == 'true'}}
107
107
run : ./certkeychain.sh "${MACOS_CERTIFICATE}" "${MACOS_CERTIFICATE_PWD}"
108
108
- name : Code Sign Application
109
- if : ${{github.event_name == 'release' || env.IS_RC == 'true'}}
109
+ if : ${{github.event_name == 'release' || env.IS_PRE == 'true'}}
110
110
run : |
111
111
pil=$(${pythonLocation}/bin/python -c "import PIL, os; print(os.path.dirname(PIL.__file__))")
112
112
rm -v ${DISTDIR}/Spyder.app/Contents/Frameworks/liblzma.5.dylib
@@ -117,10 +117,10 @@ jobs:
117
117
- name : Build Disk Image
118
118
run : ${pythonLocation}/bin/python setup.py ${LITE_FLAG} --dist-dir ${DISTDIR} --dmg --no-app
119
119
- name : Sign Disk Image
120
- if : ${{github.event_name == 'release' || env.IS_RC == 'true'}}
120
+ if : ${{github.event_name == 'release' || env.IS_PRE == 'true'}}
121
121
run : ./codesign.sh "${DISTDIR}/${DMGNAME}"
122
122
- name : Notarize Disk Image
123
- if : ${{github.event_name == 'release' || env.IS_RC == 'true'}}
123
+ if : ${{github.event_name == 'release' || env.IS_PRE == 'true'}}
124
124
run : ./notarize.sh -i 30 -p "${APPLICATION_PWD}" "${DISTDIR}/${DMGNAME}"
125
125
- name : Upload Artifact
126
126
uses : actions/upload-artifact@v2
0 commit comments