Skip to content

Commit

Permalink
change publish.yml
Browse files Browse the repository at this point in the history
Signed-off-by: shanhaikang.shk <[email protected]>
  • Loading branch information
GITHUBear committed Sep 25, 2024
1 parent bbee35f commit 25e2903
Showing 1 changed file with 24 additions and 5 deletions.
29 changes: 24 additions & 5 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:
contents: read

jobs:
deploy:
release-build:

runs-on: ubuntu-latest

Expand All @@ -39,7 +39,26 @@ jobs:
- name: Build package
run: |
poetry build
- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

- name: upload windows dists
uses: actions/upload-artifact@v4
with:
name: release-dists
path: dist/

pypi-publish:
runs-on: ubuntu-latest
needs:
- release-build
permissions:
id-token: write

steps:
- name: Retrieve release distributions
uses: actions/download-artifact@v4
with:
name: release-dists
path: dist/

- name: Publish release distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

0 comments on commit 25e2903

Please sign in to comment.