Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
WittmannF committed Nov 16, 2023
1 parent b6ab212 commit f06b0f6
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/deploy-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,33 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # Ensures tags are fetched

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x' # Use the version appropriate for your project

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine bump2version
- name: Configure Git
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Bump version and push tag
run: |
bump2version patch # or 'minor' or 'major' depending on the release type
git push --tags
- name: Build and publish
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*
twine upload dist/*

0 comments on commit f06b0f6

Please sign in to comment.