Skip to content

Commit e217570

Browse files
committed
Whoops, messed up the pipeline and didn't fix it
1 parent 0421b75 commit e217570

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
build:
1212
name: Build and analyze
1313
runs-on: windows-latest
14+
env:
15+
ProjectName: 'AStar.Dev.Logging.Extensions'
16+
RepositoryName: 'astar-dev-logging-extensions'
1417
steps:
1518
- name: Set up JDK
1619
uses: actions/[email protected]
@@ -52,16 +55,16 @@ jobs:
5255
shell: powershell
5356
run: |
5457
dotnet tool install --global dotnet-coverage
55-
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_astar-dev-utilities" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
58+
.\.sonar\scanner\dotnet-sonarscanner begin /k:"astar-development_${{ env.RepositoryName }}" /o:"astar-development" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml
5659
dotnet build --configuration Release
5760
dotnet-coverage collect 'dotnet test --filter "FullyQualifiedName!~Acceptance.Tests"' -f xml -o 'coverage.xml'
5861
.\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
5962
6063
- name: Pack NuGet package
6164
if: github.ref == 'refs/heads/main'
62-
run: dotnet pack .\src\AStar.Dev.Utilities\AStar.Dev.Utilities.csproj
65+
run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj
6366

6467
- name: Push to NuGet
6568
if: github.ref == 'refs/heads/main'
66-
run: dotnet nuget push "**\AStar.Dev.Utilities.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
69+
run: dotnet nuget push "**\${{ env.ProjectName }}.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
6770

AStar.Dev.Logging.Extensions.sln

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Logging.Extension
1111
EndProject
1212
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.Logging.Extensions.Tests.Unit", "tests\AStar.Dev.Logging.Extensions.Tests.Unit\AStar.Dev.Logging.Extensions.Tests.Unit.csproj", "{B6EE17A9-0491-466B-8240-A304617A9DB3}"
1313
EndProject
14+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".github", ".github", "{D3039A93-8371-42A2-814F-2E09B74E8FBF}"
15+
ProjectSection(SolutionItems) = preProject
16+
.github\dependabot.yml = .github\dependabot.yml
17+
EndProjectSection
18+
EndProject
19+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{A62713CB-F1A7-446C-875B-74F964FC52F4}"
20+
ProjectSection(SolutionItems) = preProject
21+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
22+
EndProjectSection
23+
EndProject
1424
Global
1525
GlobalSection(SolutionConfigurationPlatforms) = preSolution
1626
Debug|Any CPU = Debug|Any CPU
@@ -32,5 +42,6 @@ Global
3242
GlobalSection(NestedProjects) = preSolution
3343
{9F2D808F-D24F-4031-9C2D-7744B32E15FC} = {BB29ADA9-37FE-434B-BF05-2E195E7C83A2}
3444
{B6EE17A9-0491-466B-8240-A304617A9DB3} = {2148A5BF-30D5-460A-BE18-C19426C87428}
45+
{A62713CB-F1A7-446C-875B-74F964FC52F4} = {D3039A93-8371-42A2-814F-2E09B74E8FBF}
3546
EndGlobalSection
3647
EndGlobal

0 commit comments

Comments
 (0)