From 274f4df43a045b73548bf9b4b3f1f6f23d56f395 Mon Sep 17 00:00:00 2001 From: lbl <1791778603@qq.com> Date: Thu, 6 Feb 2025 19:06:13 +0800 Subject: [PATCH] upload file --- .github/workflows/rust.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 46fbaf2..2be7935 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -220,12 +220,14 @@ jobs: mv ./README ./artifacts/README.txt cd ./artifacts tar -czf vnt-$TARGET-$TAG.tar.gz * + mkdir upload_file + mv vnt-$TARGET-$TAG.tar.gz ./upload_file/ - name: Archive artifact uses: actions/upload-artifact@v4 with: name: vnt-cli-${{ matrix.TARGET }} path: | - ./artifacts + ./artifacts/upload_file # deploys to github releases on tag deploy: if: startsWith(github.ref, 'refs/tags/') @@ -235,7 +237,6 @@ jobs: - name: Download artifacts uses: actions/download-artifact@v4 with: - name: vnt-cli-${{ matrix.TARGET }} path: ./artifacts - name: List run: find ./artifacts @@ -243,7 +244,7 @@ jobs: uses: svenstaro/upload-release-action@v2 with: repo_token: ${{ secrets.YOURTOKEN }} - file: ./artifacts/*.tar.gz + file: ./artifacts/**/*.tar.gz tag: ${{ github.ref }} overwrite: true file_glob: true \ No newline at end of file