Skip to content

Commit da8fd5c

Browse files
authored
Create main.yml
1 parent c63db2f commit da8fd5c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/main.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
publish:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: "9.0.x"
20+
21+
- name: Restore
22+
run: dotnet restore ./BalanceBoard.sln
23+
24+
- name: Build
25+
run: dotnet build ./BalanceBoard.sln --configuration Release --no-restore
26+
27+
- name: Publish
28+
run: dotnet publish ./BalanceBoard.sln --configuration Release --no-build

0 commit comments

Comments
 (0)