Skip to content

Commit

Permalink
Switch to conda env for pypi upload
Browse files Browse the repository at this point in the history
  • Loading branch information
marshallmcdonnell committed Dec 30, 2020
1 parent 8b7142c commit 796697a
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,21 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7
channels: conda-forge

- name: Build Python package and Upload to PyPi
shell: bash -l {0}
env:
PYPI_TOKEN_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
pip3 install wheel twine
pip install wheel twine
python setup.py sdist bdist_wheel
twine upload --username "__token__" --password $PYPI_TOKEN_PASSWORD dist/*
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.7
channels: conda-forge

- name: Build conda package and upload to Anaconda
shell: bash -l {0}
env:
Expand Down

0 comments on commit 796697a

Please sign in to comment.