Skip to content

Commit

Permalink
Fixes css not showing up in nuget package (#80)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
elifry and Elijah Fry authored Dec 12, 2024
1 parent f9e9be0 commit eab0d3b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
26 changes: 24 additions & 2 deletions .github/workflows/create-nuget-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
2 changes: 1 addition & 1 deletion .nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package>
<metadata>
<id>evol-colorpicker</id>
<version>3.4.3-alpha1</version>
<version>3.4.4</version>
<authors>Olivier Giulieri</authors>
<owners>Olivier Giulieri</owners>
<license type="file">LICENSE.md</license>
Expand Down

0 comments on commit eab0d3b

Please sign in to comment.