Skip to content
Merged
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: 5 additions & 0 deletions .centeredge
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"disabledValidationRules": [
"jira-issue-reference"
]
}
18 changes: 12 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
with:
dotnet-version: 6.0.x

Expand All @@ -43,9 +43,7 @@ jobs:

- name: Restore
working-directory: ./src
run: >-
dotnet nuget add source --name github https://nuget.pkg.github.com/CenterEdge/index.json
&& dotnet restore ./CenterEdge.Async.sln
run: dotnet restore ./CenterEdge.Async.sln

- name: Build
working-directory: ./src
Expand All @@ -71,4 +69,12 @@ jobs:
working-directory: ./src
# Publish CI packages from PRs and tagged releases
if: ${{ startsWith(github.ref, 'refs/tags/') || startsWith(github.ref, 'refs/pull/') }}
run: dotnet nuget push **/*.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s github
run: |
dotnet nuget add source --name github https://nuget.pkg.github.com/CenterEdge/index.json &&
dotnet nuget push **/*.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg -k ${{ secrets.GITHUB_TOKEN }} -s github

- name: Push to NuGet.org
working-directory: ./src
# Publish tagged releases to NuGet.org
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: dotnet nuget push **/*.${{ steps.gitversion.outputs.nuGetVersionV2 }}.nupkg -k ${{ secrets.NUGET_API_KEY }} -s nuget.org
14 changes: 14 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" />
</packageSources>

<packageSourceMapping>
<!-- key value for <packageSource> should match key values from <packageSources> element -->
<packageSource key="nuget.org">
<package pattern="*" />
</packageSource>
</packageSourceMapping>
</configuration>