Merge branch 'master' of https://git.d4m13n.dev/damien/meilisearch.NET
All checks were successful
build-packages / meilisearch-dotnet-packages (push) Successful in 1m27s
All checks were successful
build-packages / meilisearch-dotnet-packages (push) Successful in 1m27s
This commit is contained in:
commit
081463edcd
75
.github/workflows/on-push.yml
vendored
75
.github/workflows/on-push.yml
vendored
@ -1,8 +1,10 @@
|
|||||||
name: build-packages
|
name: build-packages
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- 'master'
|
- 'master'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
meilisearch-dotnet-packages:
|
meilisearch-dotnet-packages:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -11,56 +13,61 @@ jobs:
|
|||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: 'Cleanup build folder'
|
- name: Cleanup build folder
|
||||||
run: |
|
run: |
|
||||||
rm ./* -r || true
|
rm -rf ./* ./.??* || true
|
||||||
rm ./.??* -r || true
|
|
||||||
|
|
||||||
- uses: actions/checkout@v3
|
- name: Set up .NET
|
||||||
with:
|
uses: actions/setup-dotnet@v3
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- uses: gittools/actions/gitversion/setup@v1.1.1
|
|
||||||
with:
|
|
||||||
versionSpec: '5.x'
|
|
||||||
- uses: gittools/actions/gitversion/execute@v1.1.1
|
|
||||||
with:
|
|
||||||
useConfigFile: true
|
|
||||||
configFilePath: GitVersion.yml
|
|
||||||
- name: Tag branch
|
|
||||||
run: |
|
|
||||||
git tag $GitVersion_SemVer
|
|
||||||
git push origin $GitVersion_SemVer
|
|
||||||
|
|
||||||
- uses: actions/setup-dotnet@v3
|
|
||||||
with:
|
with:
|
||||||
dotnet-version: 8.0.x
|
dotnet-version: 8.0.x
|
||||||
|
|
||||||
- name: Authorise NuGet
|
- name: Checkout repository
|
||||||
uses: StirlingLabs/GithubNugetAuthAction@main
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
owner: data443
|
fetch-depth: 0
|
||||||
name: Data443
|
|
||||||
token: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|
||||||
- name: Set up GitVersion
|
- name: Install GitVersion
|
||||||
uses: gittools/actions/gitversion/setup@v0.9.15
|
uses: gittools/actions/gitversion/setup@v1.1.1
|
||||||
with:
|
with:
|
||||||
versionSpec: '5.x'
|
versionSpec: '5.x'
|
||||||
|
|
||||||
- uses: gittools/actions/gitversion/execute@v0.9.15
|
- name: Determine version with GitVersion
|
||||||
|
id: gitversion
|
||||||
|
uses: gittools/actions/gitversion/execute@v1.1.1
|
||||||
with:
|
with:
|
||||||
useConfigFile: true
|
useConfigFile: true
|
||||||
configFilePath: GitVersion.yml
|
configFilePath: GitVersion.yml
|
||||||
|
|
||||||
- name: Set Package Version
|
- name: Tag repository
|
||||||
|
run: |
|
||||||
|
git tag ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
git push origin ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
|
||||||
|
- name: Update package version
|
||||||
uses: vers-one/dotnet-project-version-updater@v1.6
|
uses: vers-one/dotnet-project-version-updater@v1.6
|
||||||
with:
|
with:
|
||||||
file: "./meilisearch.NET/meilisearch.NET.csproj"
|
file: "./meilisearch.NET/meilisearch.NET.csproj"
|
||||||
version: ${{ env.GitVersion_SemVer }}
|
version: ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
|
||||||
- run: dotnet build --configuration Release
|
- name: Build and package
|
||||||
- run: dotnet pack ./meilisearch.NET/meilisearch.NET.csproj --output nuget-packages --configuration Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
|
run: |
|
||||||
- run: dotnet nuget push **/*.nupkg --skip-duplicate -s "https://nuget.pkg.github.com/D4M13N-D3V/index.json" --api-key ${{secrets.GITHUB_TOKEN}}
|
dotnet build --configuration Release
|
||||||
- run: dotnet nuget remove source Data443
|
dotnet pack ./meilisearch.NET/meilisearch.NET.csproj --output nuget-packages --configuration Release -p:IncludeSymbols=true -p:SymbolPackageFormat=snupkg
|
||||||
|
|
||||||
|
- name: Publish package to NuGet registry
|
||||||
|
run: |
|
||||||
|
dotnet nuget push nuget-packages/*.nupkg --skip-duplicate -s "https://git.d4m13n.dev/api/packages/damien/nuget/index.json" --api-key ${{ secrets.PACKAGE_TOKEN }}
|
||||||
|
|
||||||
|
- name: Create GitHub Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
tag_name: ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
name: Release ${{ steps.gitversion.outputs.SemVer }}
|
||||||
|
body: "https://git.d4m13n.dev/damien/meilisearch.NET/packages
|
||||||
|
Automated release of MeiliSearch.NET version ${{ steps.gitversion.outputs.SemVer }}."
|
||||||
|
files: nuget-packages/*.nupkg
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) [year] [fullname]
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
@ -1,7 +1,8 @@
|
|||||||
|
|
||||||
# MeiliSearch .NET Embedded
|
# MeiliSearch .NET Embedded
|
||||||
|
|
||||||
[](https://nuget.pkg.github.com/D4M13N-D3V/package/meilisearch.NET)
|

|
||||||
|

|
||||||
|
[](#)
|
||||||
[](LICENSE)
|
[](LICENSE)
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
|
Loading…
x
Reference in New Issue
Block a user