From b723c5cadffaf6c07b4a895cc4695f6355575f0b Mon Sep 17 00:00:00 2001 From: Andrii Chebukin Date: Mon, 30 Oct 2023 01:02:05 +0400 Subject: [PATCH] Switched back to publish via pipeline --- .github/workflows/publish_ci.yml | 49 ++++++++++++++++++++++++++++++-- 1 file changed, 47 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_ci.yml b/.github/workflows/publish_ci.yml index 90d081399..c663d021d 100644 --- a/.github/workflows/publish_ci.yml +++ b/.github/workflows/publish_ci.yml @@ -36,8 +36,53 @@ jobs: - name: Install local tools run: dotnet tool restore - - name: Pack and push NuGet packages to GitHub - run: dotnet run --project build/Build.fsproj --launch-profile PackAndPush + - name: Run integration tests + run: dotnet run --project build/Build.fsproj + + - name: Pack FSharp.Data.GraphQL.Shared project + run: | + cd src/FSharp.Data.GraphQL.Shared + dotnet pack --no-build --nologo --configuration Release /p:IsNuget=true -o ../../nuget + - name: Publish FSharp.Data.GraphQL.Shared project to GitHub + run: | + dotnet nuget push nuget/*Shared*.nupkg -s "github" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + + - name: Pack FSharp.Data.GraphQL.Client project + run: | + cd src/FSharp.Data.GraphQL.Client + dotnet pack --no-build --nologo --configuration Release /p:IsNuget=true -o ../../nuget + - name: Publish FSharp.Data.GraphQL.Client project to GitHub + run: | + dotnet nuget push nuget/*Client*.nupkg -s "github" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + + - name: Pack FSharp.Data.GraphQL.Server project + run: | + cd src/FSharp.Data.GraphQL.Server + dotnet pack --no-build --nologo --configuration Release /p:IsNuget=true -o ../../nuget + - name: Publish FSharp.Data.GraphQL.Server project to GitHub + run: | + dotnet nuget push nuget/*Server*.nupkg -s "github" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + + - name: Pack FSharp.Data.GraphQL.Server.Relay project + run: | + cd src/FSharp.Data.GraphQL.Server.Relay + dotnet pack --no-build --nologo --configuration Release /p:IsNuget=true -o ../../nuget + - name: Publish FSharp.Data.GraphQL.Server.Relay project to GitHub + run: | + dotnet nuget push nuget/*Server.Relay*.nupkg -s "github" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + + - name: Pack FSharp.Data.GraphQL.Server.Middleware project + run: | + cd src/FSharp.Data.GraphQL.Server.Middleware + dotnet pack --nologo --configuration Release /p:IsNuget=true -o ../../nuget + - name: Publish FSharp.Data.GraphQL.Server.Middleware project to GitHub + run: | + dotnet nuget push nuget/*Server.Middleware*.nupkg -s "github" -k ${{secrets.GITHUB_TOKEN}} --skip-duplicate + + - name: Prepare the sample project to be packed as a project template + run: | + & "./Prepare template project for packing.ps1" + shell: pwsh - name: Pack FSharp.Data.GraphQL.ProjectTemplates template project run: |