Skip to content

Commit

Permalink
Update workflows to push to Artifactory
Browse files Browse the repository at this point in the history
  • Loading branch information
medengineer committed May 4, 2021
1 parent d8fb90c commit 8fe535b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 18 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
export CC=gcc-8
export CXX=g++-8
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch master
sudo ./plugin-GUI/Resources/Scripts/install_linux_dependencies.sh
cd plugin-GUI/Build && cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ..
- name: build
Expand All @@ -33,8 +33,7 @@ jobs:
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-linux
Expand All @@ -48,6 +47,4 @@ jobs:
cp -r libs/linux/bin/* shared
zipfile=${package}_${new_plugin_ver}.zip
zip -r -X $zipfile plugins shared
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/NetworkEvents-plugin/linux/$zipfile"
9 changes: 3 additions & 6 deletions .github/workflows/mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: setup
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch master
cd plugin-GUI/Build && cmake -G "Xcode" ..
- name: build
run: |
Expand All @@ -30,8 +30,7 @@ jobs:
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-mac
Expand All @@ -45,6 +44,4 @@ jobs:
cp -r libs/macos/bin/* shared
zipfile=${package}_${new_plugin_ver}.zip
zip -r -X $zipfile plugins shared
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/NetworkEvents-plugin/mac/$zipfile"
9 changes: 3 additions & 6 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
package: "open-ephys-lib"
run: |
cd ../..
git clone https://github.com/open-ephys/plugin-GUI.git --branch testing
git clone https://github.com/open-ephys/plugin-GUI.git --branch master
cd plugin-GUI/Build
cmake -G "Visual Studio 16 2019" -A x64 ..
mkdir Release && cd Release
Expand All @@ -47,8 +47,7 @@ jobs:
- name: deploy
if: github.ref == 'refs/heads/master'
env:
bintrayUser: ${{ secrets.bintrayUsername }}
bintrayApiKey: ${{ secrets.bintrayApiKey }}
artifactoryApiKey: ${{ secrets.artifactoryApiKey }}
build_dir: "Build/Release"
repo: ${{ github.event.repository.name }}
package: ${{ github.event.repository.name }}-windows
Expand All @@ -60,7 +59,5 @@ jobs:
cp $build_dir/*.dll plugins
zipfile=${package}_${new_plugin_ver}.zip
powershell Compress-Archive -Path "plugins" -DestinationPath ${zipfile}
user_info="$bintrayUser:$bintrayApiKey"
curl -T $zipfile --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/$zipfile
curl -X POST --user $user_info https://api.bintray.com/content/$bintrayUser/$repo/$package/$new_plugin_ver/publish
curl -H "X-JFrog-Art-Api:$artifactoryApiKey" -T $zipfile "https://openephys.jfrog.io/artifactory/NetworkEvents-plugin/windows/$zipfile"
shell: bash

0 comments on commit 8fe535b

Please sign in to comment.