From cd93dc0b6aef93411097e2b6f44f6d67fac09dcb Mon Sep 17 00:00:00 2001 From: yeliqin666 <63091085+yeliqin666@users.noreply.github.com> Date: Sun, 9 Jun 2024 15:01:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=89=88=E6=9C=AC=E8=A7=84?= =?UTF-8?q?=E5=AE=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/main.yml | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2b3406e..88236fd 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -8,6 +8,12 @@ on: - "build.py" pull_request: workflow_dispatch: + inputs: + BUILD_VER: + description: 'Ver.(beta/dev/stable)' + required: true + default: 'dev' + jobs: build: needs: [build-win,build-linux] @@ -18,11 +24,11 @@ jobs: - name: Rename Tool run: | cd TIK-win - move ./TIK-win.zip ../TIK-5-${{ github.run_number }}-win.zip + move ./TIK-win.zip ../TIK-5-${{ github.run_number }}-${{ github.event.inputs.BUILD_VER }}-win.zip cd .. cd TIK-linux ls - move ./TIK-linux.zip ../TIK-5-${{ github.run_number }}-linux.zip + move ./TIK-linux.zip ../TIK-5-${{ github.run_number }}-${{ github.event.inputs.BUILD_VER }}-linux.zip cd .. - name: Upload release uses: ncipollo/release-action@v1 @@ -84,4 +90,4 @@ jobs: uses: actions/upload-artifact@v3 with: name: TIK-linux - path: './TIK-linux.zip' \ No newline at end of file + path: './TIK-linux.zip'