Skip to content

Commit fffd835

Browse files
committed
ci: update workflows to push to openephys artifactory account
Use access token for authentication
1 parent c0754eb commit fffd835

3 files changed

Lines changed: 36 additions & 36 deletions

File tree

.github/workflows/linux.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ jobs:
3131
- name: deploy_dev
3232
if: github.ref == 'refs/heads/development'
3333
env:
34-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
34+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
3535
run: |
3636
cd Build
3737
cp -r Release open-ephys
3838
cp ../LICENSE open-ephys
3939
zipfile=open-ephys-latest-linux-dev.zip
4040
zip -r $zipfile open-ephys
41-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
42-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/linux/$zipfile"
41+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
42+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/linux/$zipfile"
4343
cd ../Resources/Installers/Linux/Open-Ephys_Installer
4444
mkdir -p usr/local/bin/open-ephys-gui
4545
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
@@ -48,21 +48,21 @@ jobs:
4848
dpkg-deb --build Open-Ephys_Installer
4949
installer=open-ephys-gui-latest-dev.deb
5050
mv -v Open-Ephys_Installer.deb $installer
51-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/linux/$installer"
51+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/linux/$installer"
5252
shell: bash
5353
- name: deploy_test
5454
if: github.ref == 'refs/heads/testing'
5555
env:
56-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
56+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
5757
run: |
5858
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
5959
cd Build
6060
cp -r Release open-ephys
6161
cp ../LICENSE open-ephys
6262
zipfile=open-ephys-${gui_ver}-linux-beta.zip
6363
zip -r $zipfile open-ephys
64-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
65-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/linux/$zipfile"
64+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
65+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/linux/$zipfile"
6666
cd ../Resources/Installers/Linux/Open-Ephys_Installer
6767
mkdir -p usr/local/bin/open-ephys-gui
6868
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
@@ -71,21 +71,21 @@ jobs:
7171
dpkg-deb --build Open-Ephys_Installer
7272
installer=open-ephys-gui-${gui_ver}-beta.deb
7373
mv -v Open-Ephys_Installer.deb $installer
74-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/linux/$installer"
74+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/linux/$installer"
7575
shell: bash
7676
- name: deploy_release
7777
if: github.ref == 'refs/heads/main'
7878
env:
79-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
79+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
8080
run: |
8181
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
8282
cd Build
8383
cp -r Release open-ephys
8484
cp ../LICENSE open-ephys
8585
zipfile=open-ephys-${gui_ver}-linux.zip
8686
zip -r $zipfile open-ephys
87-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
88-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/linux/$zipfile"
87+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
88+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/linux/$zipfile"
8989
cd ../Resources/Installers/Linux/Open-Ephys_Installer
9090
mkdir -p usr/local/bin/open-ephys-gui
9191
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
@@ -94,5 +94,5 @@ jobs:
9494
dpkg-deb --build Open-Ephys_Installer
9595
installer=open-ephys-gui-${gui_ver}.deb
9696
mv Open-Ephys_Installer.deb $installer
97-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/linux/$installer"
97+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/linux/$installer"
9898
shell: bash

.github/workflows/osx.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ jobs:
3535
- name: deploy_dev
3636
if: github.ref == 'refs/heads/development'
3737
env:
38-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
38+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
3939
run: |
4040
zipfile=open-ephys-latest-mac-dev.zip
4141
cd Build/Release
4242
mkdir open-ephys
4343
mv open-ephys.app/ open-ephys
4444
zip -r $zipfile open-ephys
45-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
46-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/mac/$zipfile"
45+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
46+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/mac/$zipfile"
4747
brew install create-dmg && create-dmg \
4848
--volname "Open-Ephys Installer" \
4949
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
@@ -58,20 +58,20 @@ jobs:
5858
"open-ephys/"
5959
installer=Open_Ephys_GUI_latest-dev.dmg
6060
mv -v Open-Ephys-Installer.dmg $installer
61-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/mac/$installer"
61+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/mac/$installer"
6262
- name: deploy_test
6363
if: github.ref == 'refs/heads/testing'
6464
env:
65-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
65+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
6666
run: |
6767
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
6868
zipfile=open-ephys-${gui_ver}-mac-beta.zip
6969
cd Build/Release
7070
mkdir open-ephys
7171
mv open-ephys.app/ open-ephys
7272
zip -r $zipfile open-ephys
73-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
74-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/mac/$zipfile"
73+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
74+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/mac/$zipfile"
7575
brew install create-dmg && create-dmg \
7676
--volname "Open-Ephys Installer" \
7777
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
@@ -86,20 +86,20 @@ jobs:
8686
"open-ephys/"
8787
installer=Open_Ephys_GUI_${gui_ver}-beta.dmg
8888
mv -v Open-Ephys-Installer.dmg $installer
89-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/mac/$installer"
89+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/mac/$installer"
9090
- name: deploy_release
9191
if: github.ref == 'refs/heads/main'
9292
env:
93-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
93+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
9494
run: |
9595
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
9696
zipfile=open-ephys-${gui_ver}-mac.zip
9797
cd Build/Release
9898
mkdir open-ephys
9999
mv open-ephys.app/ open-ephys
100100
zip -r $zipfile open-ephys
101-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
102-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/mac/$zipfile"
101+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
102+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/mac/$zipfile"
103103
brew install create-dmg && create-dmg \
104104
--volname "Open-Ephys Installer" \
105105
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
@@ -114,4 +114,4 @@ jobs:
114114
"open-ephys/"
115115
installer=Open_Ephys_GUI_${gui_ver}.dmg
116116
mv -v Open-Ephys-Installer.dmg $installer
117-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/mac/$installer"
117+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/mac/$installer"

.github/workflows/windows.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: deploy_dev
3737
if: github.ref == 'refs/heads/development'
3838
env:
39-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
39+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
4040
run: |
4141
cd Build
4242
cp -r Release open-ephys
@@ -46,18 +46,18 @@ jobs:
4646
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
4747
zipfile=open-ephys-latest-windows-dev.zip
4848
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
49-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
50-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/windows/$zipfile"
49+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
50+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/windows/$zipfile"
5151
cd ../Resources/Installers/Windows
5252
iscc "windows_installer_script.iss"
5353
installer=Install-Open-Ephys-GUI-latest-dev.exe
5454
mv Open-Ephys_Installer.exe $installer
55-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/windows/$installer"
55+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/windows/$installer"
5656
shell: bash
5757
- name: deploy_test
5858
if: github.ref == 'refs/heads/testing'
5959
env:
60-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
60+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
6161
run: |
6262
cd Build
6363
cp -r Release open-ephys
@@ -67,18 +67,18 @@ jobs:
6767
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
6868
zipfile=open-ephys-${gui_ver}-windows-beta.zip
6969
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
70-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
71-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/windows/$zipfile"
70+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
71+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/windows/$zipfile"
7272
cd ../Resources/Installers/Windows
7373
iscc "windows_installer_script.iss"
7474
installer=Install-Open-Ephys-GUI-${gui_ver}-beta.exe
7575
mv Open-Ephys_Installer.exe $installer
76-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/windows/$installer"
76+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/windows/$installer"
7777
shell: bash
7878
- name: deploy_release
7979
if: github.ref == 'refs/heads/main'
8080
env:
81-
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
81+
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
8282
run: |
8383
cd Build
8484
cp -r Release open-ephys
@@ -88,11 +88,11 @@ jobs:
8888
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
8989
zipfile=open-ephys-${gui_ver}-windows.zip
9090
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
91-
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
92-
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/windows/$zipfile"
91+
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
92+
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/windows/$zipfile"
9393
cd ../Resources/Installers/Windows
9494
iscc "windows_installer_script.iss"
9595
installer=Install-Open-Ephys-GUI-${gui_ver}.exe
9696
mv Open-Ephys_Installer.exe $installer
97-
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/windows/$installer"
97+
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/windows/$installer"
9898
shell: bash

0 commit comments

Comments
 (0)