Skip to content

Commit

Permalink
test GHA1
Browse files Browse the repository at this point in the history
  • Loading branch information
youyupei committed Sep 29, 2024
1 parent a524bec commit 9269292
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/python-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,27 @@ jobs:
name: Build source distribution
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0 # this is needed to get the tags

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'

- name: Install setuptools_scm and update seuptools
run: pip install setuptools_scm setuptools; pip install --upgrade setuptools

- name: Get package version from setuptools_scm
run: python -m setuptools_scm; git tag -l

- name: Build sdist
run: pipx run build --sdist

- uses: actions/upload-artifact@v4
- name: Upload sdist artifact
uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
Expand Down

0 comments on commit 9269292

Please sign in to comment.