Build/publish both sdist and wheel
This commit is contained in:
parent
eeaef4806a
commit
f9349de48e
|
@ -40,7 +40,7 @@ jobs:
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: make lint
|
run: make lint
|
||||||
|
|
||||||
sdist:
|
build:
|
||||||
needs: test
|
needs: test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
@ -54,7 +54,7 @@ jobs:
|
||||||
- name: Install
|
- name: Install
|
||||||
run: make install
|
run: make install
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python -m build --sdist
|
run: python -m build
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
@ -62,7 +62,7 @@ jobs:
|
||||||
path: dist
|
path: dist
|
||||||
|
|
||||||
publish:
|
publish:
|
||||||
needs: sdist
|
needs: build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: startsWith(github.ref, 'refs/tags/v')
|
if: startsWith(github.ref, 'refs/tags/v')
|
||||||
permissions:
|
permissions:
|
||||||
|
|
Loading…
Reference in New Issue