diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 718c4c26..714f1911 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -183,6 +183,10 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'release' && github.event.action == 'published' + defaults: + run: + shell: bash -leo pipefail {0} + steps: - uses: actions/download-artifact@v4 with: @@ -193,8 +197,20 @@ jobs: - name: List files in artifact run: find conda-packages -type f -name "*.tar.bz2" + - name: Setup micromamba and anaconda-client + uses: mamba-org/setup-micromamba@v1 + with: + environment-name: test-env + create-args: >- + anaconda-client + init-shell: >- + bash + - name: Upload to Anaconda run: | export ANACONDA_API_TOKEN=${{ secrets.ANACONDA_TOKEN }} - find conda-packages -type f -name "*.tar.bz2" -exec anaconda upload {} \; + for file in $(find conda-packages -type f -name "*.tar.bz2"); do + echo "Uploading $file" + anaconda upload "$file" + done diff --git a/README.rst b/README.rst index 1ae08821..562aa02f 100644 --- a/README.rst +++ b/README.rst @@ -1,7 +1,7 @@ Brain Imaging Analysis Kit ========================== -.. image:: https://github.com/brainiak/brainiak/actions/workflows/main.yml/badge.svg +.. image:: https://github.com/brainiak/brainiak/actions/workflows/ci.yml/badge.svg :alt: Status of GitHub Actions workflow :target: https://github.com/brainiak/brainiak/actions