From cd6efb61ff6c091a8e0dff896260cdc91b297ed8 Mon Sep 17 00:00:00 2001
From: Steve Lorello <42971704+slorello89@users.noreply.github.com>
Date: Thu, 11 Jul 2024 08:51:26 -0400
Subject: [PATCH] adding push-button release workflow, updating versions and
.gitignore (#457)
---
.github/workflows/nuget-release.yml | 55 +++++++++++++++++++
.gitignore | 5 +-
.../Redis.OM.Vectorizers.AllMiniLML6V2.csproj | 6 +-
.../Redis.OM.Vectorizers.Resnet18.csproj | 6 +-
.../Redis.OM.Vectorizers.csproj | 6 +-
src/Redis.OM/Redis.OM.csproj | 6 +-
6 files changed, 71 insertions(+), 13 deletions(-)
create mode 100644 .github/workflows/nuget-release.yml
diff --git a/.github/workflows/nuget-release.yml b/.github/workflows/nuget-release.yml
new file mode 100644
index 00000000..40dda41b
--- /dev/null
+++ b/.github/workflows/nuget-release.yml
@@ -0,0 +1,55 @@
+name: Nuget Release
+
+on:
+ workflow_dispatch:
+ inputs:
+ version:
+ description: Release version.
+ required: true
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: fetch-models
+ run: sh fetch-models.sh
+ - name: Build
+ run : dotnet build -c Release
+ - name: Pack
+ run: dotnet pack -c Release --output .
+ - name: Set up .NET
+ uses: actions/setup-dotnet@v3
+ with:
+ dotnet-version: |
+ 8
+ 7
+ 6
+ - name: Publish
+ uses: alirezanet/publish-nuget@v3.1.0
+ with:
+ NUGET_KEY: ${{secrets.NUGET_API_KEY}}
+ PROJECT_FILE_PATH: src/Redis.OM/Redis.OM.csproj
+ PACKAGE_NAME: Redis.OM
+ TAG_COMMIT: false
+ - name: Publish
+ uses: alirezanet/publish-nuget@v3.1.0
+ with:
+ NUGET_KEY: ${{secrets.NUGET_API_KEY}}
+ PROJECT_FILE_PATH: src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj
+ PACKAGE_NAME: Redis.OM.Vectorizers
+ TAG_COMMIT: false
+ - name: Publish
+ uses: alirezanet/publish-nuget@v3.1.0
+ with:
+ NUGET_KEY: ${{secrets.NUGET_API_KEY}}
+ PROJECT_FILE_PATH: src/Redis.OM.Vectorizers.AllMiniLML6V2/Redis.OM.Vectorizers.AllMiniLML6V2.csproj
+ PACKAGE_NAME: Redis.OM.Vectorizers.AllMiniLML6V2
+ TAG_COMMIT: false
+ - name: Publish
+ uses: alirezanet/publish-nuget@v3.1.0
+ with:
+ NUGET_KEY: ${{secrets.NUGET_API_KEY}}
+ PROJECT_FILE_PATH: src/Redis.OM.Vectorizers.Resnet18/Redis.OM.Vectorizers.Resnet18.csproj
+ PACKAGE_NAME: Redis.OM.Vectorizers.Resnet18
+ TAG_COMMIT: false
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index c0196859..f6cccbfa 100644
--- a/.gitignore
+++ b/.gitignore
@@ -389,4 +389,7 @@ FodyWeavers.xsd
.idea/
*.sln.iml
-test/Redis.OM.Unit.Tests/appsettings.json.local
\ No newline at end of file
+test/Redis.OM.Unit.Tests/appsettings.json.local
+
+src/Redis.OM.Vectorizers.AllMiniLML6V2/Resources/
+src/Redis.OM.Vectorizers.Resnet18/Resources/
\ No newline at end of file
diff --git a/src/Redis.OM.Vectorizers.AllMiniLML6V2/Redis.OM.Vectorizers.AllMiniLML6V2.csproj b/src/Redis.OM.Vectorizers.AllMiniLML6V2/Redis.OM.Vectorizers.AllMiniLML6V2.csproj
index 2bdd23cf..e26b87da 100644
--- a/src/Redis.OM.Vectorizers.AllMiniLML6V2/Redis.OM.Vectorizers.AllMiniLML6V2.csproj
+++ b/src/Redis.OM.Vectorizers.AllMiniLML6V2/Redis.OM.Vectorizers.AllMiniLML6V2.csproj
@@ -5,9 +5,9 @@