From 45ac81c00a24c01fe3d9465e618c9de47a7ae398 Mon Sep 17 00:00:00 2001 From: Oliver Rivett-Carnac Date: Fri, 28 Jun 2024 15:39:56 +0200 Subject: [PATCH] Simplify build steps dotnet pack seems to hate not building the project itself --- .github/workflows/main.yml | 12 +----------- .github/workflows/release.yml | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index ac2677d..9c9b4f3 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -15,15 +15,5 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal - name: Pack - run: dotnet pack -o dist --no-build --verbosity normal + run: dotnet pack -o dist --no-build --verbosity normal \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d10b034..b5d9efb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,17 +13,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 0 # avoid shallow clone so nbgv can do its work. - - name: Setup .NET - uses: actions/setup-dotnet@v4 - with: - dotnet-version: 8.0.x - - name: Restore dependencies - run: dotnet restore - - name: Build - run: dotnet build --no-restore - - name: Test - run: dotnet test --no-build --verbosity normal - name: Pack - run: dotnet pack -o dist --no-build --verbosity normal + run: dotnet pack -o dist --verbosity normal - name: Publish run: dotnet nuget push "dist/*.nupkg" --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json