diff --git a/.github/workflows/build-msvc.yml b/.github/workflows/build-msvc.yml index 221b2c0e..4e53f87e 100644 --- a/.github/workflows/build-msvc.yml +++ b/.github/workflows/build-msvc.yml @@ -3,7 +3,6 @@ name: Build C3 (MSVC) on: push: branches: [ master ] - tags: ['v*.*.*'] pull_request: branches: [ master ] diff --git a/.github/workflows/release-msvc.yml b/.github/workflows/release-msvc.yml index c68c464a..cac05050 100644 --- a/.github/workflows/release-msvc.yml +++ b/.github/workflows/release-msvc.yml @@ -1,4 +1,4 @@ -name: Build C3 (MSVC) +name: Build C3 Release Artifact (MSVC) on: release: @@ -6,7 +6,7 @@ on: jobs: build: - name: Build C3 (MSVC) + name: Build C3 Release Artifact (MSVC) runs-on: windows-2022 steps: - name: Add msbuild to PATH @@ -44,12 +44,10 @@ jobs: Move-Item Bin Build\Bin Get-ChildItem -Path Build\Bin -Include *.exp,*.lib,*.map -Recurse | Remove-Item -Force + - name: Build and Zip Artifact + run: | + powershell Compress-Archive -Path Build\* -DestinationPath C3-${{ github.event.release.tag_name }}-Release.zip - - name: Build and Zip Artifact - run: | - powershell Compress-Archive -Path Build\* -DestinationPath C3-${{ github.event.release.tag_name }}-Release.zip - - - name: Upload Release Asset uses: actions/upload-release-asset@v1 env: @@ -59,4 +57,3 @@ jobs: asset_path: C3-${{ github.event.release.tag_name }}-Release.zip asset_name: C3-${{ github.event.release.tag_name }}-Release.zip asset_content_type: application/zip -