Skip to content

Commit

Permalink
Fix CI deploy (de-dup store-artifacts)
Browse files Browse the repository at this point in the history
  • Loading branch information
randomir committed Nov 24, 2021
1 parent 24bd18d commit 57d9e5d
Showing 1 changed file with 16 additions and 11 deletions.
27 changes: 16 additions & 11 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@ jobs:
name: Build package
command: env/bin/python setup.py sdist bdist_wheel

- store_artifacts:
path: dist

- when:
condition:
matches:
Expand Down Expand Up @@ -253,16 +250,24 @@ jobs:
- image: circleci/python:3.9

steps:
- attach_workspace:
at: dist
- checkout

- restore_cache: *restore-cache-env

- run: *create-virtualenv

- run: *install-requirements

- save_cache: *save-cache-env

- run: *build-package

- store_artifacts:
path: ./dist

- run:
name: Deploy sdist and wheels to PyPI
command: |
python -m venv env
. env/bin/activate
pip install twine
twine upload -u $PYPI_USERNAME -p $PYPI_PASSWORD --skip-existing ./dist/*
name: Upload package to PyPI
command: env/bin/twine upload -u "$PYPI_USERNAME" -p "$PYPI_PASSWORD" --skip-existing ./dist/*

workflows:
test-deploy:
Expand Down

0 comments on commit 57d9e5d

Please sign in to comment.