-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ebc0189
commit ad20dae
Showing
5 changed files
with
33 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,13 @@ jobs: | |
dotnet-version: | | ||
2.x | ||
3.x | ||
5.x | ||
6.x | ||
7.x | ||
8.x | ||
- name: Run Tests | ||
working-directory: src | ||
run: dotnet test --configuration Release || true | ||
run: dotnet test --configuration Release | ||
|
||
- name: Build projects | ||
run: | | ||
|
@@ -40,7 +39,20 @@ jobs: | |
dotnet pack "src/$project/$project.csproj" --no-build -o . /p:PackageVersion=${{ github.event.inputs.release_version }} | ||
done | ||
- name: Upload nuget package | ||
uses: actions/upload-artifact@v4 | ||
- name: Publish NuGet packages | ||
run: | | ||
dotnet nuget push "./*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json | ||
- name: Publish GitHub packages | ||
run: | | ||
dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.KISSLOG_RELEASE }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/KissLog-net/index.json" | ||
dotnet nuget push "./*.nupkg" --source "github" | ||
- name: Release | ||
uses: softprops/[email protected] | ||
with: | ||
path: ./*.nupkg | ||
body: v${{ github.event.inputs.release_version }} | ||
draft: false | ||
tag_name: v${{ github.event.inputs.release_version }} | ||
files: | | ||
./*.nupkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.