Skip to content

Commit a8b4dee

Browse files
committed
Update CI
1 parent 247642b commit a8b4dee

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

.github/workflows/dotnet.yml

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: .NET
33
on:
44
push:
55
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
68

79
jobs:
810
build:

.github/workflows/release.yml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release to NuGet
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
timeout-minutes: 5
11+
steps:
12+
- name: Checkout
13+
- uses: actions/checkout@v3
14+
- name: Setup .NET
15+
uses: actions/setup-dotnet@v2
16+
with:
17+
dotnet-version: 6.0.x
18+
- name: Build
19+
run: dotnet build ./src -c Release
20+
- name: Test
21+
run: dotnet test ./src -c Release --no-build
22+
- name: Pack nugets
23+
run: dotnet pack ./src/Standart.Hash.xxHash -c Release --no-build --output .
24+
- name: Push to NuGet
25+
run: dotnet nuget push "*.nupkg" --api-key ${{secrets.nuget_api_key}} --source https://api.nuget.org/v3/index.json

nuget.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<PropertyGroup>
44
<TargetFramework>net6.0</TargetFramework>
55
<PackageId>Standart.Hash.xxHash</PackageId>
6-
<VersionPrefix>4.0.1</VersionPrefix>
6+
<VersionPrefix>4.0.2</VersionPrefix>
77
<AssemblyName>Standart.Hash.xxHash</AssemblyName>
88
<AssemblyTitle>Standart.Hash.xxHash</AssemblyTitle>
99
<Authors>Oleksandr Melnyk</Authors>

0 commit comments

Comments
 (0)