From 65f452d7c7c78859f3c2452b2100442cc78af793 Mon Sep 17 00:00:00 2001 From: aiqinxuancai Date: Mon, 20 Dec 2021 23:21:12 +0800 Subject: [PATCH] Update msbuild.yml --- .github/workflows/msbuild.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/msbuild.yml b/.github/workflows/msbuild.yml index 2940265..f65969f 100644 --- a/.github/workflows/msbuild.yml +++ b/.github/workflows/msbuild.yml @@ -1,6 +1,9 @@ name: MSBuild -on: [push] +on: + push: + tags: + - '*' env: # Path to the solution file relative to the root of the project. @@ -15,19 +18,14 @@ jobs: release: runs-on: windows-latest steps: - - name: Install 7Zip PowerShell Module - shell: powershell - run: Install-Module 7Zip4PowerShell -Force -Verbose - uses: actions/checkout@v2 - name: Configure build for win32 uses: ilammy/msvc-dev-cmd@v1 with: arch: win32 - - name: Compress - run: powershell Compress-7Zip $env:GITHUB_WORKSPACE\Release -ArchiveFileName "Release.zip" -Format Zip - name: Create a Release uses: ncipollo/release-action@v1 with: - artifacts: "Release.zip" + artifacts: "Release/version.dll" token: ${{ secrets.GITHUB_TOKEN }}