diff --git a/.github/workflows/ismrmrd_python_conda.yml b/.github/workflows/ismrmrd_python_conda.yml index 1625717..aa0b240 100644 --- a/.github/workflows/ismrmrd_python_conda.yml +++ b/.github/workflows/ismrmrd_python_conda.yml @@ -1,3 +1,5 @@ +name: Publish Conda package + on: push: branches: [master] @@ -10,7 +12,7 @@ jobs: build-conda-packages: strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, macos-13] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v5 @@ -29,12 +31,12 @@ jobs: echo "Packages built: $(find build_pkg -name ismrmrd-python*.tar.bz2)" - name: Push conda package shell: bash -l {0} - if: ${{ github.event_name == 'release' }} + if: github.event_name == 'workflow_dispatch' || github.event_name == 'push' && startsWith(github.ref, 'refs/tags') env: ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} working-directory: conda run: | - for p in $(find build_pkg -name ismrmrd-python*.tar.bz2) + for p in $(find build_pkg -name 'ismrmrd-python*.conda' -or -name 'ismrmrd-python*.tar.bz2') do ./publish_package.sh -u ismrmrd -t "$ANACONDA_TOKEN" -p "$p" done \ No newline at end of file