Skip to content

Commit

Permalink
Should build both wheel and sdist
Browse files Browse the repository at this point in the history
  • Loading branch information
tomalrussell committed Jun 9, 2023
1 parent 4be5de2 commit aa614e7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,25 +5,25 @@ on:
types: [published]

jobs:
build_sdist:
name: Build SDist
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Build SDist
run: pipx run build --sdist
- name: Build SDist and wheel
run: pipx run build

- name: Check metadata
run: pipx run twine check dist/*

- uses: actions/upload-artifact@v2
with:
path: dist/*.tar.gz
path: dist/*

upload_all:
name: Upload if release
needs: [build_sdist]
needs: [build]
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'

Expand Down

0 comments on commit aa614e7

Please sign in to comment.