Добавлена лицензия и ci

This commit is contained in:
FrigaT
2025-09-06 00:33:05 +03:00
parent eb76069adf
commit 32a8cedb57
4 changed files with 35 additions and 24 deletions

View File

@@ -21,7 +21,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '8.0.x' ]
dotnet: [ '9.0.x' ]
name: .Net ${{ matrix.dotnet }} Release
steps:
@@ -100,9 +100,10 @@ jobs:
with:
dotnet-version: ${{ matrix.dotnet }}
- name: Установка версии RetailUpdatesBot
- name: Установка версии PipelineFramework
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: Восстановление зависимостей
run: dotnet restore --nologo
@@ -110,23 +111,10 @@ jobs:
- name: Сборка решения
run: dotnet build --no-restore --nologo
- name: Публикация
run: dotnet publish RetailUpdatesBot --configuration Release --runtime win-x64 --artifacts-path artifacts --nologo
- name: Упаковка
run: dotnet pack -c Release --no-build -o ./artifacts
- name: Создание ZIP архива
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
- name: Push to nuget
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
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 }}
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
run: dotnet nuget push ./artifacts/*.nupkg --source https://gitea.example.com/api/packages/FrigaT/nuget/index.json --api-key $NUGET_API_KEY

View File

@@ -4,6 +4,7 @@
<TargetFramework>net9.0</TargetFramework>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>CS1591</WarningsNotAsErrors>
@@ -11,12 +12,13 @@
<Authors>FrigaT</Authors>
<Product>PipelineFramework</Product>
<Description>Гибкий и лёгкий фреймворк конвейеров для .NET-приложений</Description>
<PackageProjectUrl>https://github.com/MaxLabs/PipelineFramework</PackageProjectUrl>
<RepositoryUrl>https://github.com/MaxLabs/PipelineFramework</RepositoryUrl>
<PackageProjectUrl>https://git.frigat.duckdns.org/FrigaT/PipelineFramework</PackageProjectUrl>
<RepositoryUrl>https://git.frigat.duckdns.org/FrigaT/PipelineFramework</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageTags>pipeline;framework;middleware;dotnet</PackageTags>
<Version>0.0.1</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
</PropertyGroup>
</Project>

21
LICENSE Normal file
View 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.

View File

@@ -48,7 +48,7 @@ await pipeline.ExecuteAsync("Start");
## 🧑‍💻 Автор
Разработано [FrigaT](https://github.com/FrigaT)
Разработано [FrigaT](https://git.frigat.duckdns.org/FrigaT)
## 📄 Лицензия