publish test
This commit is contained in:
parent
5297c0c015
commit
97eb65d13f
48
.github/workflows/publish.yml
vendored
48
.github/workflows/publish.yml
vendored
@ -45,28 +45,28 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -l dist
|
ls -l dist
|
||||||
ls -l "${{ github.workspace }}"
|
ls -l "${{ github.workspace }}"
|
||||||
cd dist
|
# cd dist
|
||||||
./pywxdump.exe
|
# ./pywxdump.exe
|
||||||
|
|
||||||
# - name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
||||||
# run: |
|
run: |
|
||||||
# twine upload dist/*.whl dist/*.tar.gz
|
twine upload dist/*.whl dist/*.tar.gz
|
||||||
# env:
|
env:
|
||||||
# TWINE_USERNAME: __token__
|
TWINE_USERNAME: __token__
|
||||||
# TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
TWINE_PASSWORD: ${{ secrets.PYPI_TOKEN }}
|
||||||
#
|
|
||||||
# - name: Create Release
|
- name: Create Release
|
||||||
# id: create_release
|
id: create_release
|
||||||
# uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
# env:
|
env:
|
||||||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
# with:
|
with:
|
||||||
# tag_name: ${{ github.ref }}
|
tag_name: ${{ github.ref }}
|
||||||
# release_name: Release ${{ github.ref.tag }}
|
release_name: Release ${{ github.ref.tag }}
|
||||||
# body: |
|
body: |
|
||||||
# [Auto Release] Update PyWxDump to ${{ github.ref }}
|
[Auto Release] Update PyWxDump to ${{ github.ref }}
|
||||||
# draft: false
|
draft: false
|
||||||
# prerelease: false
|
prerelease: false
|
||||||
# files: |
|
files: |
|
||||||
# dist/*.exe
|
dist/*.exe
|
||||||
# dist/*.whl
|
dist/*.whl
|
2
setup.py
2
setup.py
@ -3,7 +3,7 @@ from setuptools import setup, find_packages
|
|||||||
with open("README.md", "r", encoding="utf-8") as fh:
|
with open("README.md", "r", encoding="utf-8") as fh:
|
||||||
long_description = fh.read()
|
long_description = fh.read()
|
||||||
|
|
||||||
version = "2.2.13"
|
version = "2.2.14"
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
"psutil",
|
"psutil",
|
||||||
|
@ -68,7 +68,7 @@ coll = COLLECT(exe,
|
|||||||
os.makedirs("dist", exist_ok=True)
|
os.makedirs("dist", exist_ok=True)
|
||||||
# 将代码写入文件
|
# 将代码写入文件
|
||||||
with open("dist/tmp.py", "w", encoding="utf-8") as f:
|
with open("dist/tmp.py", "w", encoding="utf-8") as f:
|
||||||
f.write(code)
|
f.write(code.strip())
|
||||||
|
|
||||||
# 获取安装包的路径
|
# 获取安装包的路径
|
||||||
package_path = site.getsitepackages()
|
package_path = site.getsitepackages()
|
||||||
|
Loading…
Reference in New Issue
Block a user