Skip to content

Commit 5370da0

Browse files
committed
Updated workflow
1 parent d4356e9 commit 5370da0

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: build
22

33
on:
44
push:
5-
branches: [ "main" ]
65

76
jobs:
87
build-win:
@@ -17,7 +16,7 @@ jobs:
1716
runs-on: windows-latest
1817

1918
steps:
20-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2120

2221
- name: Initialize Submodules
2322
uses: snickerbockers/submodules-init@v4
@@ -29,27 +28,23 @@ jobs:
2928
Write-Output "Version determined: $version"
3029
Write-Host "::set-output name=version::$version"
3130
32-
- name: Install 7Zip
33-
run: |
34-
Invoke-WebRequest -Uri "https://www.7-zip.org/a/7z1900-x64.msi" -OutFile "$env:TEMP\7z.msi"
35-
Start-Process -Wait -FilePath msiexec -ArgumentList "/i", "$env:TEMP\7z.msi", "/quiet"
36-
3731
- name: Add MSBuild to PATH
3832
uses: microsoft/setup-msbuild@v2
3933

4034
- name: Build
41-
working-directory: ${{ env.GITHUB_WORKSPACE }}
4235
run: msbuild /m /verbosity:minimal /p:Configuration=${{ matrix.BUILD_CONFIGURATION }} /p:Platform=${{ env.PLATFORM }} ${{ env.SOLUTION_FILE_PATH }}
4336

4437
- name: Zip Release
4538
run: |
46-
& "C:\Program Files\7-Zip\7z.exe" a ${{ matrix.BUILD_CONFIGURATION }}.7z ./bin/${{ matrix.BUILD_CONFIGURATION }}/*
39+
7z a ${{ matrix.BUILD_CONFIGURATION }}.7z ./bin/${{ matrix.BUILD_CONFIGURATION }}/*
4740
48-
- name: Create Release
41+
- name: Update Latest Release
4942
uses: softprops/action-gh-release@v1
5043
with:
51-
files: ${{ matrix.BUILD_CONFIGURATION }}.7z
52-
tag_name: ${{ steps.determine_version.outputs.version }}
44+
files: "*.7z"
45+
tag_name: latest
46+
name: Latest Build
47+
body: "Automated build from latest commit."
5348
draft: false
5449
prerelease: false
5550
env:

0 commit comments

Comments
 (0)