Skip to content

Commit

Permalink
Fix deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
Mng-dev-ai committed Sep 3, 2024
1 parent 9138895 commit 9271a8e
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: CD

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -15,15 +17,10 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Clean build artifacts
run: |
python setup.py clean --all
rm -rf build dist *.egg-info
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python -m build --verbose
twine check dist/*
twine upload --verbose dist/*
python setup.py sdist bdist_wheel
twine upload dist/*

0 comments on commit 9271a8e

Please sign in to comment.