-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (44 loc) · 1.64 KB
/
build.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
42
43
44
45
46
47
48
49
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: windows-latest
permissions:
contents: write
pull-requests: write
defaults:
run:
working-directory: ./Source
steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish -r win-x64 -p:PublishSingleFile=true -p:PublishReadyToRun=false -p:TargetFramework=net8.0 -p:Platform="Any CPU" -p:SelfContained=false -p:UseAppHost=true Tester
- name: Update Nightly Release
uses: andelf/nightly-release@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: nightly
name: 'Splitter Teser $$'
prerelease: true
body: 'Download the exe down below'
files: |
.\Tester\bin\Any CPU\Release\net8.0\win-x64\publish\Tester.exe
./Tester/bin/Any CPU/Release/net8.0/win-x64/publish/Tester.exe
.\Source\Tester\bin\Any CPU\Release\net8.0\win-x64\publish\Tester.exe
./Source/Tester/bin/Any CPU/Release/net8.0/win-x64/publish/Tester.exe
D:\a\Splitter\Splitter\Source\Tester\bin\Any CPU\Release\net8.0\win-x64\publish\Tester.exe
D:/a/Splitter/Splitter/Source/Tester/bin/Any CPU/Release/net8.0/win-x64/publish/Tester.exe