Skip to content

Commit

Permalink
test publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Nov 27, 2023
1 parent f247d95 commit 273b1dd
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,25 +45,25 @@ jobs:
ls -l dist
ls -l tests
# - name: Publish package with Twine # 使用 Twine 发布到 PyPI
# run: |
# twine upload dist/*.whl dist/*.tar.gz
# env:
# TWINE_USERNAME: __token__
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
#
# - name: Create Release
# id: create_release
# uses: softprops/action-gh-release@v1
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# tag_name: ${{ github.ref }}
# release_name: Release ${{ github.ref }}
# body: |
# [Auto Release] Update PyWxDump
# draft: false
# prerelease: false
# files: |
# dist/*.exe
# dist/*.whl
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
run: |
twine upload dist/*.whl dist/*.tar.gz
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}

- name: Create Release
id: create_release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
[Auto Release] Update PyWxDump
draft: false
prerelease: false
files: |
dist/*.exe
dist/*.whl

0 comments on commit 273b1dd

Please sign in to comment.