From ec4bb85d4064410221aa3f46a8e03c096ebc64f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B0=D0=BA=D1=81=D0=B8=D0=BC=20=D0=A7=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D1=8E=D0=BA?= Date: Thu, 5 Dec 2024 16:47:19 +0500 Subject: [PATCH] revert external action to cli commands --- .../workflows/TelegramBotFramework.nuget.yaml | 61 ++++--------------- 1 file changed, 13 insertions(+), 48 deletions(-) diff --git a/.gitea/workflows/TelegramBotFramework.nuget.yaml b/.gitea/workflows/TelegramBotFramework.nuget.yaml index 1b2d850..e17284d 100644 --- a/.gitea/workflows/TelegramBotFramework.nuget.yaml +++ b/.gitea/workflows/TelegramBotFramework.nuget.yaml @@ -26,56 +26,21 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: '8.0.x' - - name: Publish nuget package - uses: brandedoutcast/publish-nuget@v2 - with: - # Filepath of the project to be packaged, relative to root of repository - PROJECT_FILE_PATH: ${{ env.APP_PROJECT_NAME }}/${{ env.APP_PROJECT_NAME }}.csproj - # Configuration to build and package - # BUILD_CONFIGURATION: Release - - # Platform target to compile (default is empty/AnyCPU) - # BUILD_PLATFORM: x64 - - # NuGet package id, used for version detection & defaults to project name - # PACKAGE_NAME: Core - - # Filepath with version info, relative to root of repository & defaults to PROJECT_FILE_PATH - # VERSION_FILE_PATH: Directory.Build.props - - # Regex pattern to extract version info in a capturing group - # VERSION_REGEX: ^\s*(.*)<\/Version>\s*$ - - # Useful with external providers like Nerdbank.GitVersioning, ignores VERSION_FILE_PATH & VERSION_REGEX - # VERSION_STATIC: 1.0.0 - - # Flag to toggle git tagging, enabled by default - # TAG_COMMIT: true - - # Format of the git tag, [*] gets replaced with actual version - # TAG_FORMAT: v* - - # API key to authenticate with NuGet server - NUGET_KEY: ${{ secrets.kosyakmakc_nuget_publish }} - - # NuGet server uri hosting the packages, defaults to https://api.nuget.org - NUGET_SOURCE: https://git.kosyakmakc.ru - - # Flag to toggle pushing symbols along with nuget package to the server, disabled by default - # INCLUDE_SYMBOLS: false - - # - name: Restore dependencies - # run: dotnet restore $APP_PROJECT_NAME + - name: Restore dependencies + run: dotnet restore $APP_PROJECT_NAME - # - name: Build app - # run: dotnet build -c Release --no-restore $APP_PROJECT_NAME + - name: Build app + run: dotnet build -c Release --no-restore $APP_PROJECT_NAME - # - name: Pack app - # run: dotnet pack --no-build $APP_PROJECT_NAME + - name: Pack app + run: dotnet pack --no-build $APP_PROJECT_NAME - # - name: asd - # run: dotnet nuget add source --name gitea https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json + - name: Connect source + run: dotnet nuget remove source git.kosyakmakc.ru - # - name: Upload nuget package - # run: dotnet nuget push --source {source_name} --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg + - name: Connect source + run: dotnet nuget add source --name git.kosyakmakc.ru https://git.kosyakmakc.ru/api/packages/kosyakmakc/nuget/index.json + + - name: Upload nuget package + run: dotnet nuget push --source git.kosyakmakc.ru --api-key ${{ secrets.kosyakmakc_nuget_publish }} ${{ gitea.workspace }}/${{ env.APP_PROJECT_NAME }}/bin/Release/$APP_PROJECT_NAME.1.0.0.nupkg