From 28bdd113e50a87e1078f035ac87c272866ee0441 Mon Sep 17 00:00:00 2001 From: ZRJ Date: Sat, 16 Jul 2022 02:46:27 +0800 Subject: [PATCH] test release --- .github/workflows/build2.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build2.yml b/.github/workflows/build2.yml index adc0a06..b53e7f6 100644 --- a/.github/workflows/build2.yml +++ b/.github/workflows/build2.yml @@ -36,4 +36,17 @@ jobs: uses: actions/upload-artifact@v3 with: name: ${{ env.RELEASE_NAME }} - path: archive/* \ No newline at end of file + path: archive/* + + - name: Zip + shell: bash + if: startsWith(github.ref, 'refs/tags/') + run: | + cd archive + zip -9 $RELEASE_NAME.zip * + + - name: Release + uses: softprops/action-gh-release@v1 + if: startsWith(github.ref, 'refs/tags/') + with: + files: format('archive/{0}.zip',env.RELEASE_NAME)