Добавить публикацию клиента в .yaml

This commit is contained in:
Roman Efremov 2025-01-27 09:06:07 +05:00
parent 5d820fb2c8
commit a649fac48e

View File

@ -1,6 +1,9 @@
name: Unit tests
run-name: ${{ gitea.actor }} is testing
on: push
on:
push:
branches:
- master
jobs:
test:
@ -32,7 +35,13 @@ jobs:
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Add gitea as nuget source
run: dotnet nuget add source --name gitea --username publisher --password ${{ secrets.PUBLISHER_PASSWORD }} --store-password-in-clear-text https://git.ddrilling.ru/api/packages/DDrilling/nuget/index.json
- name: Check out repository code
uses: actions/checkout@v4
- name: Run integration tests
run: dotnet test DD.Persistence.IntegrationTests
- name: Pack Persistence Client
run: dotnet pack DD.Persistence.Client/DD.Persistence.Client.csproj -c Debug -o ./artifacts
- name: Publish Persistence Client Package
run: dotnet nuget push ./artifacts/DD.Persistence.Client.*.nupkg --source gitea --skip-duplicate