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

Commit fc4a8e6

Browse files
committed
Add GitHub CI
1 parent b7288a8 commit fc4a8e6

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

.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 RunInTray.sln
22+
msbuild RunInTray.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 RunInTray/bin/Release/* -DestinationPath RunInTray
27+
28+
- name: Release
29+
uses: softprops/action-gh-release@v1
30+
if: startsWith(github.ref, 'refs/tags/')
31+
with:
32+
files: RunInTray.zip
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)