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 5035ac6 commit 3d0fa51
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 21 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,20 @@ jobs:
- name: deploy_dev
if: github.ref == 'refs/heads/development-juce8'
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-v1.0.0-dev-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/1.0.0-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/1.0.0-dev/linux/$zipfile"
shell: bash
- name: deploy_preview
if: github.ref_type == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
Expand All @@ -56,8 +56,8 @@ jobs:
cp ../LICENSE open-ephys
zipfile=open-ephys-v1.0.0-alpha.1-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/1.0.0-alpha/linux/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/linux/$zipfile"
cd ../Resources/Installers/Linux/Open-Ephys_Installer
mkdir -p usr/local/bin/open-ephys-gui
Expand All @@ -67,5 +67,5 @@ jobs:
dpkg-deb --build Open-Ephys_Installer
installer=open-ephys-gui-v1.0.0-alpha.1.deb
mv -v Open-Ephys_Installer.deb $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/1.0.0-alpha/linux/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/linux/$installer"
shell: bash
14 changes: 7 additions & 7 deletions .github/workflows/osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
- name: deploy_dev
if: github.ref == 'refs/heads/development-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
MACOS_CERTIFICATE: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
MACOS_CERTIFICATE_PWD: ${{ secrets.BUILD_CERTIFICATE_PWD }}
MACOS_CERTIFICATE_NAME: ${{ secrets.BUILD_CERTIFICATE_NAME }}
Expand Down Expand Up @@ -95,12 +95,12 @@ jobs:
zipfile=open-ephys-v1.0.0-dev-mac.zip
/usr/bin/ditto -c -k --sequesterRsrc --keepParent open-ephys $zipfile
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/1.0.0-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/1.0.0-dev/mac/$zipfile"
- name: deploy_preview
if: github.ref_type == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
MACOS_CERTIFICATE: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
MACOS_CERTIFICATE_PWD: ${{ secrets.BUILD_CERTIFICATE_PWD }}
MACOS_CERTIFICATE_NAME: ${{ secrets.BUILD_CERTIFICATE_NAME }}
Expand Down Expand Up @@ -157,8 +157,8 @@ jobs:
zipfile=open-ephys-v1.0.0-alpha.1-mac.zip
/usr/bin/ditto -c -k --sequesterRsrc --keepParent open-ephys $zipfile
user_info="X-JFrog-Art-Api:$artifactoryApiKey"
curl -H $user_info -T $zipfile "https://openephysgui.jfrog.io/artifactory/1.0.0-alpha/mac/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/mac/$zipfile"
# Create a DMG installer
brew install create-dmg && create-dmg \
Expand All @@ -183,4 +183,4 @@ jobs:
echo "Attach staple to DMG"
xcrun stapler staple $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/1.0.0-alpha/mac/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/mac/$installer"
14 changes: 7 additions & 7 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-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
Expand All @@ -49,13 +49,13 @@ jobs:
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-v1.0.0-dev-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/1.0.0-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/1.0.0-dev/windows/$zipfile"
shell: bash
- name: deploy_preview
if: github.ref_type == 'refs/heads/testing-juce8'
env:
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
ARTIFACTORY_ACCESS_TOKEN: ${{ secrets.ARTIFACTORY_ACCESS_TOKEN }}
run: |
cd Build
cp -r Release open-ephys
Expand All @@ -68,14 +68,14 @@ jobs:
gui_ver=$(git describe --tags $(git rev-list --tags --max-count=1))
zipfile=open-ephys-v1.0.0-alpha.1-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/1.0.0-alpha/windows/$zipfile"
user_info="X-JFrog-Art-Api:$ARTIFACTORY_ACCESS_TOKEN"
curl -H $user_info -T $zipfile "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/windows/$zipfile"
cd open-ephys
rm -f msvcp140.dll vcruntime140.dll vcruntime140_1.dll
cd ../../Resources/Installers/Windows
iscc "windows_installer_script.iss"
installer=Install-Open-Ephys-GUI-v1.0.0-alpha.1.exe
mv Open-Ephys_Installer.exe $installer
curl -H $user_info -T $installer "https://openephysgui.jfrog.io/artifactory/1.0.0-alpha/windows/$installer"
curl -H $user_info -T $installer "https://openephys.jfrog.io/artifactory/GUI-binaries/1.0.0-alpha/windows/$installer"
shell: bash

0 comments on commit 3d0fa51

Please sign in to comment.