Skip to content

Commit 4b7742a

Browse files
author
MerrickZ
committed
split_workflow_to_build_and_release
1 parent 7b0eeb4 commit 4b7742a

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/build.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# This workflow will build a .NET project
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
3+
4+
name: build
5+
6+
on:
7+
pull_request:
8+
branches: [ "main" ]
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v4
18+
with:
19+
dotnet-version: 8.0.x
20+
- name: Restore dependencies
21+
run: dotnet restore
22+
- name: Build
23+
run: dotnet build --no-restore --configuration Release
24+
- name: Test
25+
run: dotnet test --no-build --verbosity normal

.github/workflows/pack.yml .github/workflows/release.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ name: build and release
66
on:
77
push:
88
branches: [ "main" ]
9-
pull_request:
10-
branches: [ "main" ]
9+
tags:
10+
- 'v*'
11+
1112

1213
jobs:
1314
build:

0 commit comments

Comments
 (0)