Skip to content

Commit

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

on:
release:
types: [created]

jobs:
deploy:
runs-on: ubuntu-latest
Expand All @@ -17,10 +15,15 @@ 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
twine upload dist/*
python -m build --verbose
twine check dist/*
twine upload --verbose dist/*

0 comments on commit 9138895

Please sign in to comment.