Skip to content

Commit d276a71

Browse files
authored
feat(CI): add package-publish.yml (#234)
1 parent 4e1a421 commit d276a71

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/package-publish.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Packages Publish
2+
on:
3+
release:
4+
types: [created]
5+
6+
jobs:
7+
nuget-publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@master
15+
16+
- name: Set up dotnet
17+
uses: actions/setup-dotnet@v2
18+
with:
19+
dotnet-version: 6.0.x
20+
21+
- name: Pack
22+
run: dotnet pack -c Release -o ./nuget
23+
24+
- name: Publish
25+
run: dotnet nuget push "./nuget/*.nupkg" -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }}

build/version.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<PropertyGroup>
33
<VersionMajor>4</VersionMajor>
44
<VersionMinor>1</VersionMinor>
5-
<VersionPatch>65</VersionPatch>
5+
<VersionPatch>66</VersionPatch>
66
<VersionPrefix>$(VersionMajor).$(VersionMinor).$(VersionPatch)</VersionPrefix>
77
</PropertyGroup>
88
</Project>

0 commit comments

Comments
 (0)