fix(ci): correct build output path (#29)
.NET Build and Publish / build (push) Has been cancelled

* fix ci

* output folder

* correct mistake

* pbulish all nugets
This commit is contained in:
Jedd Morgan
2025-06-13 18:50:27 +01:00
committed by GitHub
parent eb97eb1df8
commit 71f32a5f71
+12 -4
View File
@@ -9,6 +9,7 @@ jobs:
build:
env:
SOLUTION_NAME: "GrasshopperAsyncComponent.sln"
OUTPUT_PATH: "output"
runs-on: ubuntu-latest
steps:
- name: Checkout
@@ -18,7 +19,7 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x.x
- id: set-version
name: Set version to output
run: |
@@ -35,15 +36,22 @@ jobs:
echo $SEMVER
echo $FILE_VERSION
- name: restore
run: dotnet restore ${{env.SOLUTION_NAME}}
- name: build
run: dotnet build ${{env.SOLUTION_NAME}} --configuration release --no-restore -warnaserror -p:Version=${{steps.set-version.outputs.semver}} -p:FileVersion=${{steps.set-version.outputs.fileVersion}}
run: |
dotnet build ${{env.SOLUTION_NAME}} \
--configuration release \
--no-restore \
-warnaserror \
-p:Version=${{steps.set-version.outputs.semver}} \
-p:FileVersion=${{steps.set-version.outputs.fileVersion}}
- name: pack
run: dotnet pack ${{env.SOLUTION_NAME}} --no-build -p:Version=${{steps.set-version.outputs.semver}} -p:FileVersion=${{steps.set-version.outputs.fileVersion}}
- name: Push to nuget.org
if: (github.ref_type == 'tag')
run: dotnet nuget push output/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate
run: dotnet nuget push **/*.nupkg --source "https://api.nuget.org/v3/index.json" --api-key ${{secrets.CONNECTORS_NUGET_TOKEN }} --skip-duplicate