Skip to content

Commit

Permalink
Change publishing workflow to get it to work for automatic version pi…
Browse files Browse the repository at this point in the history
…cking
  • Loading branch information
IshaanDesai committed May 23, 2024
1 parent 7312865 commit 79a7f54
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/pythonpublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,19 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
uses: BSFishy/pip-action@v1
with:
packages: |
twine
build
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
run: |
python setup.py sdist
pyproject-build
twine upload dist/*

0 comments on commit 79a7f54

Please sign in to comment.