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 2dc42a2 commit f5004b4
Showing 1 changed file with 23 additions and 22 deletions.
45 changes: 23 additions & 22 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,26 +39,27 @@ jobs:
- name: test
run: |
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 f5004b4

Please sign in to comment.