Skip to content

Commit

Permalink
(#23) logging: update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
SaintAngeLs committed Sep 21, 2024
1 parent 247e58e commit 6471224
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Paralax.Logging/scripts/test-and-collect-coverage.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash

echo "Running tests and collecting coverage for Paralax.Security..."
echo "Running tests and collecting coverage for Paralax.Logging..."

cd src/Paralax.Security/src
cd src/Paralax.Logging/src

echo "Restoring NuGet packages..."
dotnet restore
Expand Down
10 changes: 5 additions & 5 deletions src/Paralax.Security/scripts/build-and-pack.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
#!/bin/bash

echo "Executing post-success scripts for branch $GITHUB_REF_NAME"
echo "Starting build and NuGet package creation for Paralax.Security..."
echo "Starting build and NuGet package creation for Paralax.Logging..."

cd src/Paralax.Security/src
cd src/Paralax.Logging/src

echo "Restoring NuGet packages..."
dotnet restore

PACKAGE_VERSION="1.0.$GITHUB_RUN_NUMBER"
echo "Building and packing the Paralax.Security library..."
echo "Building and packing the Paralax.Logging library..."
dotnet pack -c release /p:PackageVersion=$PACKAGE_VERSION --no-restore -o ./nupkg

PACKAGE_PATH="./nupkg/Paralax.Security.$PACKAGE_VERSION.nupkg"
PACKAGE_PATH="./nupkg/Paralax.Logging.$PACKAGE_VERSION.nupkg"

if [ -f "$PACKAGE_PATH" ]; then
echo "Checking if the package is already signed..."
Expand All @@ -25,7 +25,7 @@ if [ -f "$PACKAGE_PATH" ]; then
--timestamper http://timestamp.digicert.com
fi

echo "Uploading Paralax.Security package to NuGet..."
echo "Uploading Paralax.Logging package to NuGet..."
dotnet nuget push "$PACKAGE_PATH" -k "$NUGET_API_KEY" \
-s https://api.nuget.org/v3/index.json --skip-duplicate
echo "Package uploaded to NuGet."
Expand Down

0 comments on commit 6471224

Please sign in to comment.