Skip to content

Commit aeab190

Browse files
Create build-and-sign.yml
1 parent 49f7a41 commit aeab190

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Build and Sign
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: 6.x
20+
21+
- name: Build Package
22+
run: dotnet pack --configuration Release src/AClassLibrary/AClassLibrary.csproj
23+
24+
- name: Upload build artifacts
25+
uses: actions/upload-artifact@v3
26+
with:
27+
name: BuildPackages
28+
path: src/AClassLibrary/bin/Release/**/*.nupkg
29+

0 commit comments

Comments
 (0)