-
Notifications
You must be signed in to change notification settings - Fork 59
41 lines (33 loc) · 1.08 KB
/
ci.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
39
40
41
name: Compile Release
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 "Smash Forge.sln"
- name: Build solution
run: msbuild "Smash Forge.sln" -t:rebuild -property:Configuration=Release
- name: Create Zip
if: github.ref == 'refs/heads/master'
run: |
Compress-Archive -path "Smash Forge/bin/Release/*" -destinationPath Smash-Forge-Latest_Commit.zip
Compress-Archive -update -path "Forge Updater/bin/Release/*" -destinationPath Smash-Forge-Latest_Commit.zip
- name: Upload Zip
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/master'
with:
files: Smash-Forge-Latest_Commit.zip
name: "Smash Forge [Latest Commit]"
tag_name: "LatestCommit"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}