Skip to content

Commit

Permalink
Change build
Browse files Browse the repository at this point in the history
  • Loading branch information
bra-fsn committed Feb 29, 2024
1 parent 6513b61 commit 39d5e73
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,19 @@ jobs:
name: Build and publish distribution to PyPI
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Set up Python 3
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: Publish distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
password: ${{ secrets.pypi_token }}
- uses: actions/checkout@master
- name: Set up Python 3
uses: actions/setup-python@v1
with:
python-version: 3.x
- 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@release/v1
with:
password: ${{ secrets.pypi_token }}

0 comments on commit 39d5e73

Please sign in to comment.