Skip to content

Commit

Permalink
adding push-button release workflow, updating versions and .gitignore (
Browse files Browse the repository at this point in the history
  • Loading branch information
slorello89 authored Jul 11, 2024
1 parent eff0dc9 commit cd6efb6
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 13 deletions.
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/[email protected]
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/[email protected]
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/[email protected]
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/[email protected]
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

0 comments on commit cd6efb6

Please sign in to comment.