diff --git a/.github/workflows/build_whl.yml b/.github/workflows/build_whl.yml index e5b9020..9116b59 100644 --- a/.github/workflows/build_whl.yml +++ b/.github/workflows/build_whl.yml @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3a46267..bafc217 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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