forked from KingGold171/Fake-Notepad
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.yml
40 lines (31 loc) · 1023 Bytes
/
build.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
name: Build
on:
push
env:
SOLUTION_FILE_PATH: Notepad.sln
BUILD_CONFIGURATION: Release
jobs:
Win64:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
submodules: True
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 /p:ErrorOnDuplicatePublishOutputFiles=false ${{env.SOLUTION_FILE_PATH}}
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: "fake-notepad"
path: "${{github.workspace}}/x64/Release/"
- name: Upload a Build Artifact
uses: actions/[email protected]
with:
name: "fake-notepad"
path: "${{github.workspace}}/fake-notepad/bin/x64/Release/"