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 f852d99

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

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" ]
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 }}
@@ -74,14 +74,19 @@ jobs:
7474
# env:
7575
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
7676

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
77+
- name: Upload Wheel to GitHub Releases
78+
# zh: 上传 Wheel 到 GitHub Releases
79+
# if: startsWith(github.ref, 'refs/tags/')
80+
uses: softprops/action-gh-release@v2
81+
with:
82+
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
83+
tag_name: released
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 によって変換されたページ (->オリジナル) /