-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (31 loc) · 976 Bytes
/
dotnet.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
name: .NET
on: [push]
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Restore dependencies
run: dotnet restore --runtime win-x64
- name: Build
run: dotnet build --no-restore --runtime win-x64 -c Release TCS.csproj
#- name: Test
# run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish --no-build --runtime win-x64 -c Release -p:PublishSingleFile=true --self-contained true TCS.csproj
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/Release/net5.0/win-x64/publish/TCS.exe
#body_path: ${{ github.workflow }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}