Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 723d1cf

Browse files
committed
Update build-windows-wheel.yml
1 parent ca8d83f commit 723d1cf

File tree

1 file changed

+19
-14
lines changed

1 file changed

+19
-14
lines changed

‎.github/workflows/build-windows-wheel.yml‎

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,20 @@ on:
1010
workflow_dispatch:
1111

1212
permissions:
13-
contents: read
13+
contents: write
1414

1515
jobs:
1616
build-wheel:
1717
runs-on: windows-latest
1818

1919
strategy:
2020
matrix:
21-
python-version: [ "3.12", "3.11", "3.10" ]
21+
python-version: [ "3.13", "3.12", "3.11", "3.10" ]
2222

2323
steps:
2424
- name: Checkout repository code
2525
# zh: 检出仓库代码
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727

2828
- name: Set up Python ${{ matrix.python-version }}
2929
# zh: 设置 Python ${{ matrix.python-version }}
@@ -39,6 +39,7 @@ jobs:
3939
# zh: 设置 Rust
4040
uses: actions-rs/toolchain@v1
4141
with:
42+
profile: rust
4243
toolchain: stable
4344
override: true
4445

@@ -74,14 +75,18 @@ jobs:
7475
# env:
7576
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
7677

77-
# - name: Upload Wheel to GitHub Releases
78-
# # zh: 上传 Wheel 到 GitHub Releases
79-
# if: startsWith(github.ref, 'refs/tags/')
80-
# uses: actions/upload-release-asset@v1
81-
# env:
82-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
83-
# with:
84-
# upload_url: ${{ github.event.release.upload_url }}
85-
# asset_path: ./dist/*.whl
86-
# asset_name: your_package_name-${{ matrix.python-version }}.whl # zh: 请替换为实际的 wheel 文件名
87-
# asset_content_type: application/octet-stream
78+
- name: Upload Wheel to GitHub Releases
79+
# zh: 上传 Wheel 到 GitHub Releases
80+
# if: startsWith(github.ref, 'refs/tags/')
81+
uses: softprops/action-gh-release@v2
82+
with:
83+
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
84+
name: latest-whl
85+
draft: false
86+
prerelease: true
87+
make_latest: true
88+
generate_release_notes: true
89+
# upload_url: ${{ github.event.release.upload_url }}
90+
files: ${{ github.workspace }}/dist/*.whl
91+
# asset_name: your_package_name-${{ matrix.python-version }}.whl # zh: 请替换为实际的 wheel 文件名
92+
# asset_content_type: application/octet-stream

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /