Skip to content

Commit c5148db

Browse files
authored
Merge pull request #208 from OpenBMB/main
Update dev branch
2 parents 2497721 + 30e6469 commit c5148db

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

.github/workflows/build_whl.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,14 +70,14 @@ jobs:
7070
- name: Download source distribution
7171
uses: actions/download-artifact@v4
7272
with:
73-
path: dist
74-
pattern: source_dist/*.tar.gz
73+
path: source_dist
74+
name: source_dist
7575

7676
- name: Combine all wheels into a single directory
7777
run: |
7878
mkdir -p dist
7979
find wheels -name '*.whl' -exec mv {} dist/ \;
80-
find dist -name '*.tar.gz' -exec mv {} dist/ \;
80+
find source_dist -name '*.tar.gz' -exec mv {} dist/ \;
8181
8282
- name: Archive distribution files
8383
uses: actions/upload-artifact@v4

.github/workflows/release.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,18 @@ jobs:
2727
python-version: 3.9
2828

2929
- name: Download distribution files
30-
uses: actions/download-artifact@v2
30+
uses: actions/download-artifact@v4
3131
with:
3232
name: dist
3333
path: dist
3434

35-
- name: Upload Distribution Files
35+
- name: Upload Distribution Files to Existing Release
3636
uses: softprops/action-gh-release@v1
3737
with:
38-
body_path: "Release.txt"
3938
files: |
4039
dist/*.tar.gz
4140
dist/*.whl
42-
prerelease: false
43-
name: "BMTrain"
41+
tag_name: ${{ github.ref_name }} # 使用当前触发工作流的 tag
4442
token: ${{ secrets.RELEASE_TOKEN }}
45-
tag_name: ${{ steps.create_release.outputs.tag }}
4643
env:
4744
GITHUB_REPOSITORY: OpenBMB/BMTrain

0 commit comments

Comments
 (0)