From eab0d3bfde8ba18881972a7c3b10e8bb8521cd2a Mon Sep 17 00:00:00 2001 From: Elijah Fry <33290919+elifry@users.noreply.github.com> Date: Thu, 12 Dec 2024 01:07:29 -0500 Subject: [PATCH] Fixes css not showing up in nuget package (#80) * Update Create NuGet Package test * List NuGet package contents, use dynamic version in pipeline * [skip ci] Activate Upload NuGet package --------- Co-authored-by: Elijah Fry --- .github/workflows/create-nuget-package.yml | 26 ++++++++++++++++++++-- .nuspec | 2 +- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/.github/workflows/create-nuget-package.yml b/.github/workflows/create-nuget-package.yml index c1fd650..78febbe 100644 --- a/.github/workflows/create-nuget-package.yml +++ b/.github/workflows/create-nuget-package.yml @@ -14,10 +14,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '18' + + - name: Install dependencies + run: npm install + + - name: Build CSS + run: npx grunt less:prod + - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: "6.0.x" + dotnet-version: '6.0.x' - name: Install NuGet CLI run: | @@ -28,8 +39,19 @@ jobs: run: | mono nuget.exe pack .nuspec + - name: List NuGet package contents + run: | + unzip -l *.nupkg + + - name: Verify CSS file exists + run: | + if [ ! -f "css/evol-colorpicker.min.css" ]; then + echo "CSS file not found!" + exit 1 + fi + - name: Upload NuGet package env: NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} run: | - mono nuget.exe push evol-colorpicker.3.4.3-alpha1.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $NUGET_API_KEY + mono nuget.exe push *.nupkg -Source https://api.nuget.org/v3/index.json -ApiKey $NUGET_API_KEY diff --git a/.nuspec b/.nuspec index cb5d405..156ac36 100644 --- a/.nuspec +++ b/.nuspec @@ -2,7 +2,7 @@ evol-colorpicker - 3.4.3-alpha1 + 3.4.4 Olivier Giulieri Olivier Giulieri LICENSE.md