From 501898981dc539abc37671f6801496173161619c Mon Sep 17 00:00:00 2001 From: "Join.G" Date: Fri, 19 Apr 2024 15:33:18 +0800 Subject: [PATCH] fix: the archive issue. --- .github/workflows/wasm-v86.yml | 33 ++++++++++++--------------------- 1 file changed, 12 insertions(+), 21 deletions(-) diff --git a/.github/workflows/wasm-v86.yml b/.github/workflows/wasm-v86.yml index 02da021..fa173c0 100644 --- a/.github/workflows/wasm-v86.yml +++ b/.github/workflows/wasm-v86.yml @@ -19,11 +19,11 @@ jobs: runs-on: ${{ matrix.runson }} steps: - uses: actions/checkout@v2 - # - name: Get release - # id: get_release - # uses: bruceadams/get-release@v1.3.2 - # env: - # GITHUB_TOKEN: ${{ github.token }} + - name: Get release + id: get_release + uses: bruceadams/get-release@v1.3.2 + env: + GITHUB_TOKEN: ${{ github.token }} - name: create Cross.toml run: | echo [target.wasm32-unknown-unknown] > Cross.toml @@ -60,7 +60,7 @@ jobs: - name: Remove File uses: JesseTG/rm@v1.0.3 with: - path: release + path: target/release - name: Archive Release uses: thedoctor0/zip-release@main with: @@ -68,19 +68,10 @@ jobs: filename: ../../../v86.tar.gz directory: target path: . - - uses: actions/upload-artifact@v4 + - name: upload artifact + uses: softprops/action-gh-release@v2 + env: + GITHUB_TOKEN: ${{ github.token }} with: - name: v86.tar.gz - path: | - target - !target/release/build - !target/release/deps - !target/release/examples - !target/release/incremental - # - name: upload artifact - # uses: softprops/action-gh-release@v2 - # env: - # GITHUB_TOKEN: ${{ github.token }} - # with: - # files: | - # v86.tar.gz \ No newline at end of file + files: | + v86.tar.gz \ No newline at end of file