-
Notifications
You must be signed in to change notification settings - Fork 53
40 lines (39 loc) · 1.11 KB
/
siemens_to_ismrmrd_conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
on:
pull_request:
branches:
- master
release:
types:
- created
workflow_dispatch:
jobs:
build-conda-packages:
strategy:
matrix:
os: [ubuntu-latest, macos-13]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
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