Skip to content

Commit

Permalink
Update pypi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Barry57 authored Oct 28, 2024
1 parent d7c3bc2 commit a8c0fcd
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,19 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
python-version: '3.x' # 选择适合你项目的Python版本

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install build twine
- name: Build package
run: python -m build

- name: Publish package
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/*

0 comments on commit a8c0fcd

Please sign in to comment.