Skip to content

Commit

Permalink
use build env for twine
Browse files Browse the repository at this point in the history
  • Loading branch information
AlbertDeFusco committed Jan 27, 2025
1 parent 93150e4 commit 0895616
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,14 @@ jobs:
with:
name: anaconda-cli-base-wheel-${{ github.sha }}
path: ~/dist
- name: Install build dependencies
run: pip install twine
- name: Create build environment
run: |
source $CONDA/bin/activate
conda create -n build --file ./etc/build.linux-64.lock
- name: Upload to PyPI with twine
run: python -m twine upload ~/dist/*
run: |
source $CONDA/bin/activate && conda activate build
twine upload ~/dist/*
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 0895616

Please sign in to comment.