File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 1313 os : [ubuntu-20.04]
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v4
1717 - name : setup
1818 run : |
1919 sudo apt update
@@ -37,15 +37,15 @@ jobs:
3737 - name : deploy
3838 if : github.ref == 'refs/heads/main'
3939 env :
40- artifactoryApiKey : ${{ secrets.artifactoryApiKey }}
40+ ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
4141 build_dir : " Build"
4242 package : SpectrumViewer-linux
4343 run : |
4444 plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
45- tag=$(git describe --tags $(git rev-list --tags --max-count=1) )
45+ tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+" )
4646 new_plugin_ver=$tag-API$plugin_api
4747 mkdir plugins
4848 cp -r $build_dir/*.so plugins
4949 zipfile=${package}_${new_plugin_ver}.zip
5050 zip -r -X $zipfile plugins
51- curl -H "X-JFrog-Art-Api:$artifactoryApiKey " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/linux/$zipfile"
51+ curl -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/linux/$zipfile"
Original file line number Diff line number Diff line change 1313 os : [macos-latest]
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v4
1717 - name : setup
1818 run : |
1919 cd ../..
@@ -35,15 +35,15 @@ jobs:
3535 - name : deploy
3636 if : github.ref == 'refs/heads/main'
3737 env :
38- artifactoryApiKey : ${{ secrets.artifactoryApiKey }}
38+ ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
3939 build_dir : " Build/Release"
4040 package : SpectrumViewer-mac
4141 run : |
4242 plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]" | tail -1)
43- tag=$(git describe --tags $(git rev-list --tags --max-count=1) )
43+ tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+" )
4444 new_plugin_ver=$tag-API$plugin_api
4545 mkdir plugins
4646 cp -r $build_dir/*.bundle plugins
4747 zipfile=${package}_${new_plugin_ver}.zip
4848 zip -r -X $zipfile plugins
49- curl -H "X-JFrog-Art-Api:$artifactoryApiKey " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/mac/$zipfile"
49+ curl -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/mac/$zipfile"
Original file line number Diff line number Diff line change 1313 os : [windows-2019]
1414
1515 steps :
16- - uses : actions/checkout@v1
16+ - uses : actions/checkout@v4
1717 - name : setup
1818 env :
1919 repo : open-ephys-gui
@@ -56,16 +56,16 @@ jobs:
5656 - name : deploy
5757 if : github.ref == 'refs/heads/main'
5858 env :
59- artifactoryApiKey : ${{ secrets.artifactoryApiKey }}
59+ ARTIFACTORY_ACCESS_TOKEN : ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
6060 build_dir : " Build/Release"
6161 package : SpectrumViewer-windows
6262 run : |
6363 plugin_api=$(grep -rnw ../../plugin-GUI/Source -e '#define PLUGIN_API_VER' | grep -Eo "[0-9]*" | tail -1)
64- tag=$(git describe --tags $(git rev-list --tags --max-count=1) )
64+ tag=$(grep -w Source/OpenEphysLib.cpp -e 'info->libVersion' | grep -Eo "[0-9]+.[0-9]+.[0-9]+" )
6565 new_plugin_ver=$tag-API$plugin_api
6666 mkdir plugins
6767 cp -v $build_dir/*.dll plugins
6868 zipfile=${package}_${new_plugin_ver}.zip
6969 powershell Compress-Archive -Path "plugins" -DestinationPath ${zipfile}
70- curl -H "X-JFrog-Art-Api:$artifactoryApiKey " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/windows/$zipfile"
70+ curl -H "X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN " -T $zipfile "https://openephys.jfrog.io/artifactory/SpectrumViewer-plugin/windows/$zipfile"
7171 shell : bash
You can’t perform that action at this time.
0 commit comments