publish add cache
This commit is contained in:
parent
97eb65d13f
commit
605b3df7e1
15
.github/workflows/publish.yml
vendored
15
.github/workflows/publish.yml
vendored
@ -16,20 +16,21 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Checkout repository # 检出仓库
|
- name: Checkout repository # 检出仓库
|
||||||
uses: actions/checkout@v2 # 使用 GitHub 官方的 checkout action
|
uses: actions/checkout@v2 # 使用 GitHub 官方的 checkout action
|
||||||
|
|
||||||
- run: |
|
- run: |
|
||||||
git fetch --prune --unshallow
|
git fetch --prune --unshallow # 获取完整的 git 历史记录
|
||||||
|
|
||||||
- name: Set up Python # 设置 Python 环境
|
- name: Set up Python # 设置 Python 环境
|
||||||
uses: actions/setup-python@v2 # 使用 GitHub 官方的 setup-python action
|
- uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: 3.8 # 指定 Python 版本 (3.8)
|
python-version: '3.8'
|
||||||
|
cache: 'pip' # caching pip dependencies
|
||||||
- name: Install dependencies # 安装依赖
|
- run: |
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install build
|
pip install build
|
||||||
python -m pip install --upgrade twine
|
python -m pip install --upgrade twine
|
||||||
pip install pyinstaller
|
pip install pyinstaller
|
||||||
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Build package
|
- name: Build package
|
||||||
run: |
|
run: |
|
||||||
@ -45,8 +46,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
ls -l dist
|
ls -l dist
|
||||||
ls -l "${{ github.workspace }}"
|
ls -l "${{ github.workspace }}"
|
||||||
# cd dist
|
|
||||||
# ./pywxdump.exe
|
|
||||||
|
|
||||||
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
- name: Publish package with Twine # 使用 Twine 发布到 PyPI
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
Reference in New Issue
Block a user