4343 - name : build
4444 run : |
4545 msbuild Build/ALL_BUILD.vcxproj -p:Configuration=Release -p:Platform=x64 -m
46+ - name : package
47+ run : |
48+ gui_ver=v$(grep -w CMakeLists.txt -e 'GUI_VERSION' | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+(-([0-9A-Za-z\.-]+))?")
49+ branch="${{github.ref_name}}"
50+
51+ cd Build
52+ cp -r Release open-ephys
53+ cp -r ../Resources/DLLs/FrontPanelUSB-DriverOnly-4.5.5.exe open-ephys
54+ cp -r ../Resources/DLLs/FTD3XXDriver_WHQLCertified_1.3.0.10_Installer.exe open-ephys
55+ cp ../LICENSE open-ephys
56+ cp C:/Windows/System32/msvcp140.dll open-ephys
57+ cp C:/Windows/System32/vcruntime140.dll open-ephys
58+ cp C:/Windows/System32/vcruntime140_1.dll open-ephys
59+
60+ zipfile=open-ephys-${gui_ver}-windows.zip
61+ powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
62+ echo "ZIPFILE=Build/${zipfile}" >> $GITHUB_ENV
63+ echo "ZIPNAME=${zipfile}" >> $GITHUB_ENV
64+ shell : bash
65+ - name : upload artifact
66+ if : ${{ github.ref_name != 'development' && github.ref_name != 'testing' && github.ref_name != 'main' }}
67+ uses : actions/upload-artifact@v4
68+ with :
69+ name : ${{ env.ZIPNAME }}
70+ path : ${{ env.ZIPFILE }}
4671 - name : deploy
72+ if : ${{ github.ref_name == 'development' || github.ref_name == 'testing' || github.ref_name == 'main' }}
4773 env :
4874 ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
4975 run : |
@@ -58,25 +84,16 @@ jobs:
5884 artifactory_repo=Test
5985 elif [ ${{github.ref_name}} == 'main' ]; then
6086 artifactory_repo=Release
61- else
62- echo "This branch is not configured for deployment."
63- exit 0
6487 fi
6588
66- cd Build
67- cp -r Release open-ephys
68- cp -r ../Resources/DLLs/FrontPanelUSB-DriverOnly-4.5.5.exe open-ephys
69- cp -r ../Resources/DLLs/FTD3XXDriver_WHQLCertified_1.3.0.10_Installer.exe open-ephys
70- cp ../LICENSE open-ephys
71- cp C:/Windows/System32/msvcp140.dll open-ephys
72- cp C:/Windows/System32/vcruntime140.dll open-ephys
73- cp C:/Windows/System32/vcruntime140_1.dll open-ephys
7489 zipfile=open-ephys-${gui_ver}-windows${version_suffix}.zip
75- powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
90+ src_zipfile=Build/open-ephys-v$(grep -w CMakeLists.txt -e 'GUI_VERSION' | grep -Eo "[0-9]+\.[0-9]+\.[0-9]+(-([0-9A-Za-z\.-]+))?")-windows.zip
91+ mv ${src_zipfile} Build/${zipfile}
92+
7693 user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
77- curl -H $user_info -T $ zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/${artifactory_repo}/windows/$zipfile"
94+ curl -H $user_info -T Build/${ zipfile} "https://openephys.jfrog.io/artifactory/GUI-binaries/${artifactory_repo}/windows/$zipfile"
7895
79- cd open-ephys
96+ cd Build/ open-ephys
8097 rm -f msvcp140.dll vcruntime140.dll vcruntime140_1.dll
8198 cd ../../Resources/Installers/Windows
8299 iscc "windows_installer_script.iss"
0 commit comments