diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3c8adbcb6..77ff2f9f8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -105,14 +105,18 @@ jobs: needs: [build] runs-on: ubuntu-latest steps: - - name: Check out code - uses: actions/checkout@v4 - - name: Download all workflow run artifacts uses: actions/download-artifact@v4 + with: + path: bin/ + merge-multiple: true - - run: | - mv *-*/mihomo* files/ + - name: Delete current release assets + uses: 8Mi-Tech/delete-release-assets-action@main + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + tag: Prerelease-${{ github.ref_name }} + deleteOnlyFromDrafts: false - name: Upload Prerelease uses: softprops/action-gh-release@v1 @@ -120,5 +124,5 @@ jobs: with: tag_name: Prerelease-${{ github.ref_name }} files: | - files/* + bin/* prerelease: true \ No newline at end of file