Skip to content

Commit

Permalink
EBR-40 Replace pypa/gh-action-pypi-publish with twine
Browse files Browse the repository at this point in the history
  • Loading branch information
liadomide committed Apr 5, 2024
1 parent 7f1b304 commit f0425a8
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
name: Build

on:
release:
types: [published]
on: push

jobs:
build_wheels:
Expand Down Expand Up @@ -56,8 +54,11 @@ jobs:
name: artifact
path: dist

- uses: pypa/[email protected]
with:
user: ${{ secrets.PYPI_USER }}
password: ${{ secrets.PYPI_PASSWORD }}
# repository_url: https://test.pypi.org/legacy/
- name: Release on Pypi
env:
TWINE_USERNAME: ${{ secrets.PYPI_USER }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASS }}
run: |
echo "Publishing on pypi..."
python -m pip install -U twine
twine upload dist/*

0 comments on commit f0425a8

Please sign in to comment.