From 9662306327d357d69b7eac1236ae58258d03e70d Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Mon, 3 Mar 2025 16:01:01 +0000 Subject: [PATCH] #27 yml: nuget auto-build --- .github/workflows/cloudscribe-develop.yml | 32 +++++++++++++++++++++++ NuGet.Config | 8 ------ 2 files changed, 32 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/cloudscribe-develop.yml delete mode 100644 NuGet.Config diff --git a/.github/workflows/cloudscribe-develop.yml b/.github/workflows/cloudscribe-develop.yml new file mode 100644 index 0000000..b812588 --- /dev/null +++ b/.github/workflows/cloudscribe-develop.yml @@ -0,0 +1,32 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: cloudscribe-simplecontactform-develop-nuget-build + +on: + push: + branches: [ "develop" ] +# pull_request: +# branches: [ "develop" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Setup NuGet + run: dotnet nuget add source ${{ secrets.NUGET_SOURCE_URL }} -u ${{secrets.NUGET_USERNAME }} -p ${{ secrets.NUGET_PASSWORD }} --store-password-in-clear-text + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build -c Release + - name: Create NuGet package + run: dotnet pack -c Release + - name: Publish NuGet package + run: dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }} diff --git a/NuGet.Config b/NuGet.Config deleted file mode 100644 index 28e4258..0000000 --- a/NuGet.Config +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - -