update for ismrmrd 1p14p1 #37
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
branches: | |
- master | |
release: | |
types: | |
- created | |
jobs: | |
build-conda-packages: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b | |
- uses: conda-incubator/setup-miniconda@e81abac10ce2c37423b54eae5af93aa3b4d3475c | |
with: | |
activate-environment: siemens-to-ismrmrd-build | |
environment-file: conda/environment.yml | |
python-version: 3.9 | |
auto-activate-base: false | |
- name: Build conda package | |
shell: bash -l {0} | |
working-directory: conda | |
run: | | |
./package.sh | |
echo "Packages built: $(find build_pkg -name siemens_to_ismrmrd*.tar.bz2)" | |
- name: Push conda package | |
shell: bash -l {0} | |
if: ${{ github.event_name == 'release' }} | |
env: | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
working-directory: conda | |
run: | | |
for p in $(find build_pkg -name siemens_to_ismrmrd*.tar.bz2) | |
do | |
./publish_package.sh -u ismrmrd -t "$ANACONDA_TOKEN" -p "$p" | |
done |