Добавлена лицензия и ci
This commit is contained in:
@@ -21,7 +21,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
dotnet: [ '8.0.x' ]
|
dotnet: [ '9.0.x' ]
|
||||||
|
|
||||||
name: .Net ${{ matrix.dotnet }} Release
|
name: .Net ${{ matrix.dotnet }} Release
|
||||||
steps:
|
steps:
|
||||||
@@ -100,9 +100,10 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: ${{ matrix.dotnet }}
|
dotnet-version: ${{ matrix.dotnet }}
|
||||||
|
|
||||||
- name: Установка версии RetailUpdatesBot
|
- name: Установка версии PipelineFramework
|
||||||
run: |
|
run: |
|
||||||
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./RetailUpdatesBot/RetailUpdatesBot.csproj
|
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./src/PipelineFramework/PipelineFramework.csproj
|
||||||
|
sed -i "s/<Version>.*<\/Version>/<Version>${{ env.VERSION }}<\/Version>/g" ./src/PipelineFramework.DI/PipelineFramework.DI.csproj
|
||||||
|
|
||||||
- name: Восстановление зависимостей
|
- name: Восстановление зависимостей
|
||||||
run: dotnet restore --nologo
|
run: dotnet restore --nologo
|
||||||
@@ -110,23 +111,10 @@ jobs:
|
|||||||
- name: Сборка решения
|
- name: Сборка решения
|
||||||
run: dotnet build --no-restore --nologo
|
run: dotnet build --no-restore --nologo
|
||||||
|
|
||||||
- name: Публикация
|
- name: Упаковка
|
||||||
run: dotnet publish RetailUpdatesBot --configuration Release --runtime win-x64 --artifacts-path artifacts --nologo
|
run: dotnet pack -c Release --no-build -o ./artifacts
|
||||||
|
|
||||||
- name: Создание ZIP архива
|
- name: Push to nuget
|
||||||
run: |
|
|
||||||
cd artifacts/publish/RetailUpdatesBot/release_win-x64/
|
|
||||||
zip -r ../RetailUpdatesBot-v${{ env.VERSION }}.zip *
|
|
||||||
cd ..
|
|
||||||
echo "ZIP_PATH=RetailUpdatesBot-v${{ env.VERSION }}.zip" >> $GITHUB_ENV
|
|
||||||
|
|
||||||
- name: Создание релиза
|
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
|
||||||
env:
|
env:
|
||||||
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
|
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
|
||||||
with:
|
run: dotnet nuget push ./artifacts/*.nupkg --source https://gitea.example.com/api/packages/FrigaT/nuget/index.json --api-key $NUGET_API_KEY
|
||||||
files: artifacts/publish/RetailUpdatesBot/RetailUpdatesBot-v${{ env.VERSION }}.zip
|
|
||||||
tag_name: v${{ env.VERSION }}
|
|
||||||
name: RetailUpdatesBot-v${{ env.VERSION }}
|
|
||||||
body: "## Что нового\n\n- Описание изменений\n- Функциональность\n- Исправления"
|
|
||||||
prerelease: ${{ env.PRE_RELEASE }}
|
|
||||||
@@ -4,6 +4,7 @@
|
|||||||
<TargetFramework>net9.0</TargetFramework>
|
<TargetFramework>net9.0</TargetFramework>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<WarningsNotAsErrors>CS1591</WarningsNotAsErrors>
|
<WarningsNotAsErrors>CS1591</WarningsNotAsErrors>
|
||||||
|
|
||||||
@@ -11,12 +12,13 @@
|
|||||||
<Authors>FrigaT</Authors>
|
<Authors>FrigaT</Authors>
|
||||||
<Product>PipelineFramework</Product>
|
<Product>PipelineFramework</Product>
|
||||||
<Description>Гибкий и лёгкий фреймворк конвейеров для .NET-приложений</Description>
|
<Description>Гибкий и лёгкий фреймворк конвейеров для .NET-приложений</Description>
|
||||||
<PackageProjectUrl>https://github.com/MaxLabs/PipelineFramework</PackageProjectUrl>
|
<PackageProjectUrl>https://git.frigat.duckdns.org/FrigaT/PipelineFramework</PackageProjectUrl>
|
||||||
<RepositoryUrl>https://github.com/MaxLabs/PipelineFramework</RepositoryUrl>
|
<RepositoryUrl>https://git.frigat.duckdns.org/FrigaT/PipelineFramework</RepositoryUrl>
|
||||||
<RepositoryType>git</RepositoryType>
|
<RepositoryType>git</RepositoryType>
|
||||||
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<PackageTags>pipeline;framework;middleware;dotnet</PackageTags>
|
<PackageTags>pipeline;framework;middleware;dotnet</PackageTags>
|
||||||
<Version>0.0.1</Version>
|
<Version>0.0.1</Version>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
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.
|
||||||
Reference in New Issue
Block a user