From 40f18648b1e7920254018b02133df96a6bcee732 Mon Sep 17 00:00:00 2001 From: Myth Date: Mon, 6 Feb 2023 17:47:02 +0800 Subject: [PATCH] ci: upload artifact --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 94e7077..a8b7bd8 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -106,6 +106,13 @@ jobs: pushd build_assets || exit 1 zip -9vr ../ZJUConnect-$ASSET_NAME.zip . popd || exit 1 + + - name: Upload artifact + if: github.event_name != 'release' + uses: actions/upload-artifact@v2 + with: + name: ZJUConnect-${{ steps.get_filename.outputs.ASSET_NAME }} + path: ZJUConnect-${{ steps.get_filename.outputs.ASSET_NAME }}.zip - name: Upload release binary if: github.event_name == 'release'