Skip to content

Commit

Permalink
no double
Browse files Browse the repository at this point in the history
  • Loading branch information
glyg committed Feb 14, 2024
1 parent 7d46c64 commit c6d2c73
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python Package using Conda
name: PyPi upload

env:
CIBW_TEST_REQUIRES: pytest
Expand All @@ -7,19 +7,18 @@ env:
on: [push]

jobs:
make_sdist:
name: Make SDist
upload_all:
needs: [build_wheels, make_sdist]
environment: pypi
permissions:
id-token: write
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
fetch-depth: 0 # Optional, use if you use setuptools_scm
submodules: true # Optional, use if you have submodules
pattern: cibw-*
path: dist
merge-multiple: true

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

- uses: actions/upload-artifact@v4
with:
name: cibw-sdist
path: dist/*.tar.gz
- uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit c6d2c73

Please sign in to comment.