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 @@ enable enable Redis.OM.Vectorizers.AllMiniLML6V2 - 0.7.1 - 0.7.1 - https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1 + 0.7.2 + 0.7.2 + https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2 Sentence Vectorizer for Redis OM .NET using all-MiniLM-L6-v2 Redis OM all-MiniLM-L6-v2 Vectorizers Steve Lorello diff --git a/src/Redis.OM.Vectorizers.Resnet18/Redis.OM.Vectorizers.Resnet18.csproj b/src/Redis.OM.Vectorizers.Resnet18/Redis.OM.Vectorizers.Resnet18.csproj index 79b8e133..40f8fa7a 100644 --- a/src/Redis.OM.Vectorizers.Resnet18/Redis.OM.Vectorizers.Resnet18.csproj +++ b/src/Redis.OM.Vectorizers.Resnet18/Redis.OM.Vectorizers.Resnet18.csproj @@ -4,9 +4,9 @@ enable enable Redis.OM.Vectorizers.Resnet18 - 0.7.1 - 0.7.1 - https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1 + 0.7.2 + 0.7.2 + https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2 Resnet 18 Vectorizers for Redis OM .NET. Redis OM Resnet 18 Vectorizers Steve Lorello diff --git a/src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj b/src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj index a7ac9a75..39ec05de 100644 --- a/src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj +++ b/src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj @@ -5,9 +5,9 @@ enable enable Redis.OM - 0.7.1 - 0.7.1 - https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1 + 0.7.2 + 0.7.2 + https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2 Core Vectorizers for Redis OM .NET. Redis OM Vectorizers Steve Lorello diff --git a/src/Redis.OM/Redis.OM.csproj b/src/Redis.OM/Redis.OM.csproj index 2e6678dc..3c072695 100644 --- a/src/Redis.OM/Redis.OM.csproj +++ b/src/Redis.OM/Redis.OM.csproj @@ -6,9 +6,9 @@ Redis.OM enable true - 0.7.1 - 0.7.1 - https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1 + 0.7.2 + 0.7.2 + https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2 Object Mapping and More for Redis Redis OM Steve Lorello