diff --git a/.github/workflows/managed.yml b/.github/workflows/managed.yml
index 0c2fe3e..12ec405 100644
--- a/.github/workflows/managed.yml
+++ b/.github/workflows/managed.yml
@@ -1,8 +1,5 @@
name: managed
-env:
- PROJECT_NAME: Blake3
-
on:
push:
paths-ignore:
@@ -19,25 +16,16 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v1
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
- name: Install .NET 6.0
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
- - name: Build & test (Release)
- run: dotnet test src -c Release
-
- - name: Pack
- run: |
- dotnet pack src -c Release
-
- - name: Publish
- if: github.event_name == 'push'
+ - name: Build, Test, Pack, Publish
run: |
- if ( "${{github.ref}}" -match "^refs/tags/[0-9]+\.[0-9]+\.[0-9]+" ) {
- dotnet nuget push src\${{env.PROJECT_NAME}}\bin\Release\*.nupkg -s nuget.org -k ${{secrets.NUGET_TOKEN}}
- } else {
- echo "publish is only enabled by tagging with a release tag"
- }
+ dotnet tool install -g dotnet-releaser
+ dotnet-releaser run --nuget-token ${{secrets.NUGET_TOKEN}} --github-token ${{secrets.GITHUB_TOKEN}} src/dotnet-releaser.toml
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index bffa851..e56b301 100644
--- a/.gitignore
+++ b/.gitignore
@@ -146,7 +146,7 @@ _TeamCity*
!.axoCover/settings.json
# Coverlet is a free, cross platform Code Coverage Tool
-coverage*[.json, .xml, .info]
+coverage.*[.json, .xml, .info]
# Visual Studio code coverage results
*.coverage
@@ -363,3 +363,10 @@ MigrationBackup/
# Rust
/lib/blake3_dotnet/target
Cargo.lock
+
+# Tmp folders
+tmp/
+[Tt]emp/
+
+# Remove artifacts produced by dotnet-releaser
+artifacts-dotnet-releaser/
diff --git a/src/Blake3.Tests/Blake3.Tests.csproj b/src/Blake3.Tests/Blake3.Tests.csproj
index a031d5b..6e47ce7 100644
--- a/src/Blake3.Tests/Blake3.Tests.csproj
+++ b/src/Blake3.Tests/Blake3.Tests.csproj
@@ -10,8 +10,8 @@
-
-
+
+
PreserveNewest
diff --git a/src/Blake3/Blake3.csproj b/src/Blake3/Blake3.csproj
index 6117ce7..a41a0ce 100644
--- a/src/Blake3/Blake3.csproj
+++ b/src/Blake3/Blake3.csproj
@@ -26,10 +26,9 @@
-
-
+
all
- runtime; build; native; contentfiles; analyzers
+ runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/src/Blake3/Blake3.props b/src/Blake3/Blake3.props
index aa84174..a804dab 100644
--- a/src/Blake3/Blake3.props
+++ b/src/Blake3/Blake3.props
@@ -3,10 +3,6 @@
Blake3.NET is a managed wrapper around the Rust implementations of the BLAKE3 cryptographic hash function.
Alexandre Mutel
en-US
- 0.5.1
-
Alexandre Mutel
Blake3; Hash; Cryptography; SIMD
https://github.com/xoofx/Blake3.NET/blob/master/changelog.md
diff --git a/src/dotnet-releaser.toml b/src/dotnet-releaser.toml
new file mode 100644
index 0000000..d3f0cfe
--- /dev/null
+++ b/src/dotnet-releaser.toml
@@ -0,0 +1,6 @@
+# configuration file for dotnet-releaser
+[msbuild]
+project = "./Blake3.NET.sln"
+[github]
+user = "xoofx"
+repo = "Blake3.NET"