Skip to content

Set default shell in upload actions #1180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 9, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 18 additions & 17 deletions .github/workflows/conda-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ 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: 'build'
Expand Down Expand Up @@ -107,7 +106,6 @@ 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: 'build'
Expand Down Expand Up @@ -146,6 +144,10 @@ jobs:

runs-on: ubuntu-latest

defaults:
run:
shell: bash -l {0}

strategy:
matrix:
python: ['3.8', '3.9']
Expand All @@ -160,21 +162,17 @@ 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 --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2

upload_windows:
needs: build_windows
Expand All @@ -183,6 +181,10 @@ jobs:

runs-on: windows-latest

defaults:
run:
shell: cmd /C CALL {0}

strategy:
matrix:
python: ['3.8', '3.9']
Expand All @@ -196,15 +198,14 @@ 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 --token ${{ env.ANACONDA_TOKEN }} upload --user dppy --label dev ${{ env.PACKAGE_NAME }}-*.tar.bz2