Добавить публикацию клиента в .yaml
This commit is contained in:
parent
5d820fb2c8
commit
a649fac48e
@ -1,6 +1,9 @@
|
|||||||
name: Unit tests
|
name: Unit tests
|
||||||
run-name: ${{ gitea.actor }} is testing
|
run-name: ${{ gitea.actor }} is testing
|
||||||
on: push
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -32,7 +35,13 @@ jobs:
|
|||||||
uses: actions/setup-dotnet@v4
|
uses: actions/setup-dotnet@v4
|
||||||
with:
|
with:
|
||||||
dotnet-version: 9.0.x
|
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
|
- name: Check out repository code
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Run integration tests
|
- name: Run integration tests
|
||||||
run: dotnet test DD.Persistence.IntegrationTests
|
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
|
||||||
|
Loading…
Reference in New Issue
Block a user