Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adding push-button release workflow, updating versions and .gitignore #457

Merged
merged 1 commit into from
Jul 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/nuget-release.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -389,4 +389,7 @@ FodyWeavers.xsd
.idea/
*.sln.iml

test/Redis.OM.Unit.Tests/appsettings.json.local
test/Redis.OM.Unit.Tests/appsettings.json.local

src/Redis.OM.Vectorizers.AllMiniLML6V2/Resources/
src/Redis.OM.Vectorizers.Resnet18/Resources/
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Redis.OM.Vectorizers.AllMiniLML6V2</RootNamespace>
<PackageVersion>0.7.1</PackageVersion>
<Version>0.7.1</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1</PackageReleaseNotes>
<PackageVersion>0.7.2</PackageVersion>
<Version>0.7.2</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2</PackageReleaseNotes>
<Description>Sentence Vectorizer for Redis OM .NET using all-MiniLM-L6-v2</Description>
<Title>Redis OM all-MiniLM-L6-v2 Vectorizers</Title>
<Authors>Steve Lorello</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Redis.OM.Vectorizers.Resnet18</RootNamespace>
<PackageVersion>0.7.1</PackageVersion>
<Version>0.7.1</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1</PackageReleaseNotes>
<PackageVersion>0.7.2</PackageVersion>
<Version>0.7.2</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2</PackageReleaseNotes>
<Description>Resnet 18 Vectorizers for Redis OM .NET.</Description>
<Title>Redis OM Resnet 18 Vectorizers</Title>
<Authors>Steve Lorello</Authors>
Expand Down
6 changes: 3 additions & 3 deletions src/Redis.OM.Vectorizers/Redis.OM.Vectorizers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Redis.OM</RootNamespace>
<PackageVersion>0.7.1</PackageVersion>
<Version>0.7.1</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1</PackageReleaseNotes>
<PackageVersion>0.7.2</PackageVersion>
<Version>0.7.2</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2</PackageReleaseNotes>
<Description>Core Vectorizers for Redis OM .NET.</Description>
<Title>Redis OM Vectorizers</Title>
<Authors>Steve Lorello</Authors>
Expand Down
6 changes: 3 additions & 3 deletions src/Redis.OM/Redis.OM.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<RootNamespace>Redis.OM</RootNamespace>
<Nullable>enable</Nullable>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<PackageVersion>0.7.1</PackageVersion>
<Version>0.7.1</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.1</PackageReleaseNotes>
<PackageVersion>0.7.2</PackageVersion>
<Version>0.7.2</Version>
<PackageReleaseNotes>https://github.com/redis/redis-om-dotnet/releases/tag/v0.7.2</PackageReleaseNotes>
<Description>Object Mapping and More for Redis</Description>
<Title>Redis OM</Title>
<Authors>Steve Lorello</Authors>
Expand Down
Loading