Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/build_whl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,14 @@ jobs:
- name: Download source distribution
uses: actions/download-artifact@v4
with:
path: dist
pattern: source_dist/*.tar.gz
path: source_dist
name: source_dist

- name: Combine all wheels into a single directory
run: |
mkdir -p dist
find wheels -name '*.whl' -exec mv {} dist/ \;
find dist -name '*.tar.gz' -exec mv {} dist/ \;
find source_dist -name '*.tar.gz' -exec mv {} dist/ \;

- name: Archive distribution files
uses: actions/upload-artifact@v4
Expand Down
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,18 @@ jobs:
python-version: 3.9

- name: Download distribution files
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: dist
path: dist

- name: Upload Distribution Files
- name: Upload Distribution Files to Existing Release
uses: softprops/action-gh-release@v1
with:
body_path: "Release.txt"
files: |
dist/*.tar.gz
dist/*.whl
prerelease: false
name: "BMTrain"
tag_name: ${{ github.ref_name }} # 使用当前触发工作流的 tag
token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ steps.create_release.outputs.tag }}
env:
GITHUB_REPOSITORY: OpenBMB/BMTrain
Loading