From e22a3f68191bd38d42a0f7fb284e752e9515b66c Mon Sep 17 00:00:00 2001 From: Apollo3zehn Date: Wed, 21 Feb 2024 09:53:04 +0100 Subject: [PATCH] Now everything should be fine --- .github/workflows/build-and-publish.yml | 10 +++++----- Directory.Build.props | 10 ++-------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build-and-publish.yml b/.github/workflows/build-and-publish.yml index 203c8bb..073164a 100644 --- a/.github/workflows/build-and-publish.yml +++ b/.github/workflows/build-and-publish.yml @@ -36,17 +36,17 @@ jobs: run: python build/create_tag_body.py - name: Build - run: dotnet build -c Release src/FluentModbus/FluentModbus.csproj /maxcpucount:1 + run: dotnet build -c Release src/FluentModbus/FluentModbus.csproj - name: Test - run: dotnet test -c Release /p:BuildProjectReferences=false /maxcpucount:1 + run: dotnet test -c Release /p:BuildProjectReferences=false - name: Upload Artifacts uses: actions/upload-artifact@v3 with: name: artifacts path: | - artifacts/packages/ + artifacts/package/release/ artifacts/tag_body.txt outputs: @@ -70,7 +70,7 @@ jobs: path: artifacts - name: Nuget package (MyGet) - run: dotnet nuget push 'artifacts/packages/*.nupkg' --api-key ${MYGET_API_KEY} --source https://www.myget.org/F/apollo3zehn-dev/api/v3/index.json + run: dotnet nuget push 'artifacts/package/release/*.nupkg' --api-key ${MYGET_API_KEY} --source https://www.myget.org/F/apollo3zehn-dev/api/v3/index.json env: MYGET_API_KEY: ${{ secrets.MYGET_API_KEY }} @@ -96,6 +96,6 @@ jobs: body_path: artifacts/tag_body.txt - name: Nuget package (Nuget) - run: dotnet nuget push 'artifacts/packages/*.nupkg' --api-key ${NUGET_API_KEY} --source https://api.nuget.org/v3/index.json + run: dotnet nuget push 'artifacts/package/release/*.nupkg' --api-key ${NUGET_API_KEY} --source https://api.nuget.org/v3/index.json env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} diff --git a/Directory.Build.props b/Directory.Build.props index 8220ece..db678da 100755 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -10,14 +10,8 @@ https://www.myget.org/F/apollo3zehn-dev/api/v3/index.json - - - - $([MSBuild]::NormalizePath($(MSBuildThisFileDirectory)artifacts)) - $(ArtifactsPath)/obj/$(MSBuildProjectName) - $(BaseIntermediateOutputPath)/$(Configuration) - $(ArtifactsPath)/bin/$(MSBuildProjectName)/$(Configuration) - $(ArtifactsPath)/packages + true + $(MSBuildThisFileDirectory)artifacts \ No newline at end of file