-
Notifications
You must be signed in to change notification settings - Fork 12
38 lines (37 loc) · 1.12 KB
/
release.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
name: Release
on:
release:
types: [ created ]
jobs:
build:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: windows-latest
env:
Solution_Name: Moto.Net.sln
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore Packages
run: nuget restore $env:Solution_Name
- name: Use NoXNL app.config with default settings
run: copy .\MotoMond\App.config.noxnl .\MotoMond\App.config
- name: Build
run: msbuild $env:Solution_Name /p:platform="Any CPU" /p:configuration="${{ matrix.configuration }}"
- name: Create Zip
uses: papeloto/action-zip@v1
with:
files: .\MotoMond\bin\${{ matrix.configuration }}
dest: MotoMond_${{ matrix.configuration }}.zip
- name: Release
uses: softprops/action-gh-release@v1
with:
files: MotoMond_${{ matrix.configuration }}.zip