From 46f774d4f79ce28e11f6645ae208887c51a7c8c6 Mon Sep 17 00:00:00 2001 From: Jaz Thomson Date: Fri, 2 Feb 2024 13:55:33 +0000 Subject: [PATCH 1/2] Bump action versions --- .github/workflows/deployment.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 3b1fabe..a16e0ef 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -12,9 +12,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Check out + uses: actions/checkout@v4.1.1 - name: Setup .NET - uses: actions/setup-dotnet@v1 + uses: actions/setup-dotnet@v4.0.0 with: dotnet-version: 6.0.300 - name: Restore tools From e13bfe8c99477e80789b21507957fb70da3fad1a Mon Sep 17 00:00:00 2001 From: Jaz Thomson Date: Fri, 2 Feb 2024 13:55:38 +0000 Subject: [PATCH 2/2] Replace brandedoutcast/publish-nuget GitHub action since it is deprecated --- .github/workflows/deployment.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index a16e0ef..4ec19d8 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -26,8 +26,11 @@ jobs: - name: Build run: dotnet build --configuration Release --no-restore working-directory: ./src + - name: Pack + run: dotnet pack --configuration Release --no-build --output . + working-directory: ./src + if: ${{ github.ref == 'refs/heads/main' }} - name: Publish - uses: brandedoutcast/publish-nuget@v2.5.2 - with: - PROJECT_FILE_PATH: src/Feliz.AgGrid.fsproj - NUGET_KEY: ${{secrets.NUGET_API_KEY}} + run: dotnet nuget publish "*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json + working-directory: ./src + if: ${{ github.ref == 'refs/heads/main' }}