-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |