From 32a8cedb574183eac07de0f8fd0744ea531ca123 Mon Sep 17 00:00:00 2001 From: FrigaT Date: Sat, 6 Sep 2025 00:33:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B0=20=D0=BB=D0=B8=D1=86=D0=B5=D0=BD=D0=B7=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=B8=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ManualRelease.yaml | 30 +++++++++-------------------- Directory.Build.props | 6 ++++-- LICENSE | 21 ++++++++++++++++++++ README.md | 2 +- 4 files changed, 35 insertions(+), 24 deletions(-) create mode 100644 LICENSE diff --git a/.gitea/workflows/ManualRelease.yaml b/.gitea/workflows/ManualRelease.yaml index 33e62dc..63eee3f 100644 --- a/.gitea/workflows/ManualRelease.yaml +++ b/.gitea/workflows/ManualRelease.yaml @@ -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>/${{ env.VERSION }}<\/Version>/g" ./RetailUpdatesBot/RetailUpdatesBot.csproj + sed -i "s/.*<\/Version>/${{ env.VERSION }}<\/Version>/g" ./src/PipelineFramework/PipelineFramework.csproj + sed -i "s/.*<\/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 }} \ No newline at end of file + 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 \ No newline at end of file diff --git a/Directory.Build.props b/Directory.Build.props index 46ce19a..eb5f14c 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -4,6 +4,7 @@ net9.0 latest enable + enable true CS1591 @@ -11,12 +12,13 @@ FrigaT PipelineFramework Гибкий и лёгкий фреймворк конвейеров для .NET-приложений - https://github.com/MaxLabs/PipelineFramework - https://github.com/MaxLabs/PipelineFramework + https://git.frigat.duckdns.org/FrigaT/PipelineFramework + https://git.frigat.duckdns.org/FrigaT/PipelineFramework git MIT pipeline;framework;middleware;dotnet 0.0.1 + MIT true \ No newline at end of file diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..8aa2645 --- /dev/null +++ b/LICENSE @@ -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. diff --git a/README.md b/README.md index 6fef88c..6ee4c98 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ await pipeline.ExecuteAsync("Start"); ## 🧑‍💻 Автор -Разработано [FrigaT](https://github.com/FrigaT) +Разработано [FrigaT](https://git.frigat.duckdns.org/FrigaT) ## 📄 Лицензия