Skip to content

Commit

Permalink
[fix] ci: update publish ci to use build package
Browse files Browse the repository at this point in the history
  • Loading branch information
ebrocas committed Dec 8, 2023
1 parent d6b09ed commit 8deb3d6
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,40 +5,30 @@ on:
types: [published]

jobs:
build_wheels:
build_wheel_and_sdist:
name: Build wheel
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.11'
- name: Install dependencies
run: pip install wheel
- name: Build wheel
run: pip wheel -w wheels .
run: pip install build
- name: Build wheel and sdist
run: python3 -m build
- uses: actions/upload-artifact@v3
with:
name: artifact
path: ./wheels/numbat*.whl

build_sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Build sdist
run: python setup.py sdist
path: dist/numbat*.whl
- uses: actions/upload-artifact@v3
with:
name: artifact
path: dist/*.tar.gz

upload_pypi:
needs: [build_wheels, build_sdist]
needs: build_wheel_and_sdist
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v3
Expand Down

0 comments on commit 8deb3d6

Please sign in to comment.