-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (33 loc) · 959 Bytes
/
build.yaml
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
name: Build
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
PLATFORM: x86
permissions:
contents: write
actions: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Decide version
shell: bash
run: echo "VERSION=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:PluginVersion="${{env.VERSION}}" /p:Contributors="TBD" ${{env.SOLUTION_FILE_PATH}} /p:Platform=${{env.PLATFORM}}
- name: Upload Build Artifacts
uses: actions/upload-artifact@v4
with:
name: ILS_Window_Plugin-${{ env.VERSION }}
path: |
Release/*.dll
Release/*.json