Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
LostInDarkMath committed May 3, 2024
1 parent 04a5c90 commit 5f4c574
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Python Tests
on:
push:
branches:
- master
- '*'
pull_request:
branches:
- master
- '*'

jobs:
test:
Expand All @@ -33,7 +33,17 @@ jobs:
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
file: .coverage
- name: Build and Upload ti PyPI
run: |
deploy:
needs: test
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master' # only on master
steps:
- uses: actions/setup-python@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12 # Specify the Python version you want to use for deployment
- name: Build and Upload to PyPI
run: |
python setup.py bdist_wheel
twine upload dist/*.whl # Uploads the wheel file to PyPI

0 comments on commit 5f4c574

Please sign in to comment.