Skip to content

Commit a17e55f

Browse files
committed
👷 ci(workflow): 更新发布工作流配置
- 升级所有使用的 github actions 到最新稳定版本 - 简化构建步骤中的多行 run 命令,使其更简洁
1 parent a1eedd5 commit a17e55f

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

.github/workflows/release-publish.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,19 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@master
15+
- uses: actions/checkout@v4
1616
- name: Set up Python 3.9
17-
uses: actions/setup-python@v1
17+
uses: actions/setup-python@v6
1818
with:
1919
python-version: 3.9
20+
2021
- name: Install pypa/build
21-
run: >-
22-
python -m
23-
pip install
24-
build
25-
--user
22+
run: python -m pip install build --user
23+
2624
- name: Build a binary wheel and a source tarball
27-
run: >-
28-
python -m
29-
build
30-
--sdist
31-
--wheel
32-
--outdir dist/
33-
.
25+
run: python -m build --sdist --wheel --outdir dist/ .
26+
3427
- name: Publish distribution 📦 to PyPI
35-
uses: pypa/gh-action-pypi-publish@master
28+
uses: pypa/gh-action-pypi-publish@release/v1
3629
with:
3730
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)