Skip to content

Commit

Permalink
ci: update workflows to push to openephys artifactory account
Browse files Browse the repository at this point in the history
Use access token for authentication
  • Loading branch information
anjaldoshi committed Nov 9, 2024
1 parent c0754eb commit fffd835
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 36 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
- name: deploy_dev
if: github.ref == 'refs/heads/development'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
cp ../LICENSE open-ephys
zipfile=open-ephys-latest-linux-dev.zip
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/linux/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/linux/$zipfile"
cd ../Resources/Installers/Linux/Open-Ephys_Installer
mkdir -p usr/local/bin/open-ephys-gui
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
Expand All @@ -48,21 +48,21 @@ jobs:
dpkg-deb --build Open-Ephys_Installer
installer=open-ephys-gui-latest-dev.deb
mv -v Open-Ephys_Installer.deb $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/linux/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/linux/$installer"
shell: bash
- name: deploy_test
if: github.ref == 'refs/heads/testing'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
cd Build
cp -r Release open-ephys
cp ../LICENSE open-ephys
zipfile=open-ephys-${gui_ver}-linux-beta.zip
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/linux/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/linux/$zipfile"
cd ../Resources/Installers/Linux/Open-Ephys_Installer
mkdir -p usr/local/bin/open-ephys-gui
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
Expand All @@ -71,21 +71,21 @@ jobs:
dpkg-deb --build Open-Ephys_Installer
installer=open-ephys-gui-${gui_ver}-beta.deb
mv -v Open-Ephys_Installer.deb $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/linux/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/linux/$installer"
shell: bash
- name: deploy_release
if: github.ref == 'refs/heads/main'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
cd Build
cp -r Release open-ephys
cp ../LICENSE open-ephys
zipfile=open-ephys-${gui_ver}-linux.zip
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/linux/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/linux/$zipfile"
cd ../Resources/Installers/Linux/Open-Ephys_Installer
mkdir -p usr/local/bin/open-ephys-gui
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
Expand All @@ -94,5 +94,5 @@ jobs:
dpkg-deb --build Open-Ephys_Installer
installer=open-ephys-gui-${gui_ver}.deb
mv Open-Ephys_Installer.deb $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/linux/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/linux/$installer"
shell: bash
24 changes: 12 additions & 12 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ jobs:
- name: deploy_dev
if: github.ref == 'refs/heads/development'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
zipfile=open-ephys-latest-mac-dev.zip
cd Build/Release
mkdir open-ephys
mv open-ephys.app/ open-ephys
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/mac/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/mac/$zipfile"
brew install create-dmg && create-dmg \
--volname "Open-Ephys Installer" \
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
Expand All @@ -58,20 +58,20 @@ jobs:
"open-ephys/"
installer=Open_Ephys_GUI_latest-dev.dmg
mv -v Open-Ephys-Installer.dmg $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/mac/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/mac/$installer"
- name: deploy_test
if: github.ref == 'refs/heads/testing'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-${gui_ver}-mac-beta.zip
cd Build/Release
mkdir open-ephys
mv open-ephys.app/ open-ephys
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/mac/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/mac/$zipfile"
brew install create-dmg && create-dmg \
--volname "Open-Ephys Installer" \
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
Expand All @@ -86,20 +86,20 @@ jobs:
"open-ephys/"
installer=Open_Ephys_GUI_${gui_ver}-beta.dmg
mv -v Open-Ephys-Installer.dmg $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/mac/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/mac/$installer"
- name: deploy_release
if: github.ref == 'refs/heads/main'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-${gui_ver}-mac.zip
cd Build/Release
mkdir open-ephys
mv open-ephys.app/ open-ephys
zip -r $zipfile open-ephys
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/mac/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/mac/$zipfile"
brew install create-dmg && create-dmg \
--volname "Open-Ephys Installer" \
--volicon "open-ephys/open-ephys.app/Contents/Resources/Icon.icns" \
Expand All @@ -114,4 +114,4 @@ jobs:
"open-ephys/"
installer=Open_Ephys_GUI_${gui_ver}.dmg
mv -v Open-Ephys-Installer.dmg $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/mac/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/mac/$installer"
24 changes: 12 additions & 12 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
- name: deploy_dev
if: github.ref == 'refs/heads/development'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
Expand All @@ -46,18 +46,18 @@ jobs:
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-latest-windows-dev.zip
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Dev/windows/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev/windows/$zipfile"
cd ../Resources/Installers/Windows
iscc "windows_installer_script.iss"
installer=Install-Open-Ephys-GUI-latest-dev.exe
mv Open-Ephys_Installer.exe $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Dev-Installer/windows/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Dev-Installer/windows/$installer"
shell: bash
- name: deploy_test
if: github.ref == 'refs/heads/testing'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
Expand All @@ -67,18 +67,18 @@ jobs:
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-${gui_ver}-windows-beta.zip
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Test/windows/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Test/windows/$zipfile"
cd ../Resources/Installers/Windows
iscc "windows_installer_script.iss"
installer=Install-Open-Ephys-GUI-${gui_ver}-beta.exe
mv Open-Ephys_Installer.exe $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Test-Installer/windows/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Test-Installer/windows/$installer"
shell: bash
- name: deploy_release
if: github.ref == 'refs/heads/main'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
Expand All @@ -88,11 +88,11 @@ jobs:
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-${gui_ver}-windows.zip
powershell Compress-Archive -Path "open-ephys" -DestinationPath ${zipfile}
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/Release/windows/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/Release/windows/$zipfile"
cd ../Resources/Installers/Windows
iscc "windows_installer_script.iss"
installer=Install-Open-Ephys-GUI-${gui_ver}.exe
mv Open-Ephys_Installer.exe $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/Release-Installer/windows/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/Release-Installer/windows/$installer"
shell: bash

0 comments on commit fffd835

Please sign in to comment.