Skip to content
This repository was archived by the owner on May 13, 2023. It is now read-only.

Commit 8ed0ccb

Browse files
committed
Add GitHub CI
1 parent b4ce19d commit 8ed0ccb

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

.github/workflows/main.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: CI
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: [windows-2019]
9+
10+
steps:
11+
- name: Setup MSBuild.exe
12+
uses: warrenbuckley/Setup-MSBuild@v1
13+
14+
- name: Setup Nuget.exe
15+
uses: warrenbuckley/Setup-Nuget@v1
16+
17+
- uses: actions/checkout@v1
18+
- name: Build
19+
run: |
20+
git submodule update --init --recursive
21+
nuget restore dnEditor.sln
22+
msbuild dnEditor.sln /p:Configuration=Release /m /verbosity:normal /p:WarningLevel=0
23+
- name: Create ZIP
24+
if: startsWith(github.ref, 'refs/tags/')
25+
run: |
26+
Compress-Archive -Path dnEditor/bin/Release/* -DestinationPath dnEditor
27+
28+
- name: Release
29+
uses: softprops/action-gh-release@v1
30+
if: startsWith(github.ref, 'refs/tags/')
31+
with:
32+
files: dnEditor.zip
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)