Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
- 'src/**'
- '.github/workflows/**'
branches: [ main ]
tags:
- 'v*'
pull_request:
paths:
- 'src/**'
Expand Down Expand Up @@ -45,9 +47,10 @@ jobs:
if: github.event_name != 'pull_request'
run: |
cd $GITHUB_WORKSPACE/out
dotnet nuget push *.nupkg --source https://www.nuget.org/api/v2/package --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols
- name: Push Github package
if: github.event_name != 'pull_request'
run: |
cd $GITHUB_WORKSPACE/out
dotnet nuget add source --username Hefaistos68 --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Hefaistos68/index.json"
dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate --no-symbols
12 changes: 10 additions & 2 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ jobs:
working-directory: .
run: |
dotnet test --configuration Release --no-restore --no-build --verbosity normal
- name: Build project and generate NuGet package
run: |
dotnet pack --configuration Release --output $GITHUB_WORKSPACE/out src/MoreDateTime/MoreDateTime.csproj
- name: Push NuGet package
run: |
cd $GITHUB_WORKSPACE/out
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{secrets.NUGET_TOKEN}} --skip-duplicate --no-symbols
- name: Push Github package
run: |
dotnet nuget add source --username Hefaistos68 --password ${{ secrets.GH_PACLAGE_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Hefaistos68/index.json"
dotnet nuget push src/MoreDateTime/bin/Release/*.nupkg --api-key ${{ secrets.GH_PACKAGE_TOKEN }} --source "github"
dotnet nuget add source --username Hefaistos68 --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Hefaistos68/index.json"
cd $GITHUB_WORKSPACE/out
dotnet nuget push *.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github" --skip-duplicate --no-symbols
2 changes: 1 addition & 1 deletion src/MoreDateTime/MoreDateTime.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<NeutralLanguage>en</NeutralLanguage>
<PackageTags>datetime dateonly timeonly dateoperations timeoperations workdays holidays</PackageTags>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<Version>1.3.0</Version>
<Version>1.4.0</Version>
<GenerateDocumentationFile>True</GenerateDocumentationFile>
<DocumentationFile>.\docs.xml</DocumentationFile>
</PropertyGroup>
Expand Down
Loading