-
Notifications
You must be signed in to change notification settings - Fork 31
50 lines (39 loc) · 1.08 KB
/
msbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: MSBuild
on:
push:
pull_request:
env:
SOLUTION_FILE_PATH: collat_payload.sln
BUILD_CONFIGURATION: Release
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Platform=x64 /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Copy files
run: |
mkdir release\
cp README.md release\
cp LICENSE release\
cp x64\Release\collat_payload.exe release\
cp solstice_artifacts\* release\
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: collateral_damage_artifacts
path: |
release\**
- name: Bundle binaries
run: 7z a -tzip collateral_damage.zip release\**
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: collateral_damage.zip