From 273b1ddafb83c0eae8f36dd696c7638135ecc4f7 Mon Sep 17 00:00:00 2001 From: xaoyo Date: Mon, 27 Nov 2023 12:27:41 +0800 Subject: [PATCH] test publish.yml --- .github/workflows/publish.yml | 44 +++++++++++++++++------------------ 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1cf240..b5e01b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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 \ No newline at end of file + - 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 \ No newline at end of file