Skip to content

Commit

Permalink
Switch
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Dec 20, 2023
1 parent 7ef42fe commit 886a078
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,14 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install wheel
run: >-
python -m pip install wheel --user
- name: Build a source tarball
run: >-
python setup.py sdist
- name: Build an universal wheel
run: >-
python setup.py bdist_wheel --universal
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build package
run: python -m build --sdist --wheel
- name: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.pypi_token }}

0 comments on commit 886a078

Please sign in to comment.