diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index c87084600eb..104167db915 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -142,10 +142,14 @@ jobs: upload_linux: needs: build_linux - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} + # if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + strategy: matrix: python: ['3.8', '3.9'] @@ -160,29 +164,30 @@ jobs: uses: conda-incubator/setup-miniconda@v2 with: auto-update-conda: true - auto-activate-base: true python-version: ${{ matrix.python }} miniconda-version: 'latest' activate-environment: 'upload' - - name: Install client and Upload + - name: Install anaconda-client + run: conda install anaconda-client + + - name: Upload env: ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - run: | - source $CONDA/etc/profile.d/conda.sh - conda info - conda activate upload - ls -lF $CONDA_PREFIX/bin - conda install anaconda-client - anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2 + run: anaconda upload -h + # run: anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2 upload_windows: needs: build_windows - if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} + # if: ${{github.ref == 'refs/heads/master' || (startsWith(github.ref, 'refs/heads/release') == true) || github.event_name == 'push' && contains(github.ref, 'refs/tags/')}} runs-on: windows-latest + defaults: + run: + shell: cmd /C CALL {0} + strategy: matrix: python: ['3.8', '3.9'] @@ -196,15 +201,15 @@ jobs: uses: conda-incubator/setup-miniconda@v2 with: auto-update-conda: true - auto-activate-base: true python-version: ${{ matrix.python }} miniconda-version: 'latest' activate-environment: 'upload' - - name: Install client and Upload + - name: Install anaconda-client + run: conda install anaconda-client + + - name: Upload env: ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} - run: | - conda activate upload - conda install anaconda-client - anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2 + run: anaconda upload -h + # run: anaconda --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2