-
Notifications
You must be signed in to change notification settings - Fork 59
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
1 parent
a54c9be
commit 67a088e
Showing
1 changed file
with
39 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,39 @@ | ||
name: .NET Core Desktop | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
pull_request: | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup MSBuild | ||
uses: microsoft/setup-msbuild@v2 | ||
|
||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v2 | ||
|
||
- name: Restore Packages | ||
run: nuget restore MySolution.sln | ||
|
||
- name: Build solution | ||
run: msbuild MySolution.sln -t:rebuild -property:Configuration=Release | ||
|
||
- name: Create Zip | ||
if: github.ref == 'refs/heads/master' | ||
working-directory: "Smash Forge/bin/Release" | ||
run: | | ||
Compress-Archive -path * -destinationPath Smash-Forge-Latest_Commit.zip | ||
- name: Upload Zip | ||
uses: softprops/action-gh-release@v1 | ||
if: github.ref == 'refs/heads/master' | ||
with: | ||
files: "Smash Forge/bin/Release/Smash-Forge-Latest_Commit.zip" | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |