Skip to content

Commit c1cc4e2

Browse files
authored
Add pack action for GH (#10)
1 parent ffdd1a7 commit c1cc4e2

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/pack.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
2+
name: Pack
3+
4+
on:
5+
release:
6+
types: [created]
7+
8+
9+
jobs:
10+
build:
11+
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
- name: Setup .NET
17+
uses: actions/setup-dotnet@v3
18+
with:
19+
dotnet-version: 6.0.x
20+
- name: Restore dependencies
21+
run: dotnet restore
22+
- name: Pack
23+
run: dotnet pack -c Release
24+
- name: Upload packages
25+
uses: actions/upload-artifact@v2
26+
with:
27+
name: "packages"
28+
path: artifacts/pack/*.nupkg
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will build a .NET project
22
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
33

4-
name: .NET
4+
name: Build and Test
55

66
on:
77
push:

0 commit comments

Comments
 (0)