Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pboyd04 authored Mar 30, 2022
1 parent 7b7fbe8 commit 48821ee
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
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

0 comments on commit 48821ee

Please sign in to comment.