changed Error serialization
All checks were successful
.NET Test / test (push) Successful in 8m8s

This commit is contained in:
2023-12-13 18:20:12 +04:00
parent b8ea74ec5b
commit 7aaacb0ac7
5 changed files with 277 additions and 58 deletions

View File

@@ -22,12 +22,15 @@ jobs:
run: dotnet restore Railway/Railway.csproj
- name: Setup nuget source
run: dotnet nuget add source --name gitea_registry https://gitea.jstdev.ru/api/packages/just/nuget/index.json
run: dotnet nuget add source --name gitea_registry ${{ vars.OUTPUT_NUGET_REGISTRY }}
- name: Create the package
env:
RELEASE_VERSION: ${{ gitea.ref_name }}
run: dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj `echo $RELEASE_VERSION | sed -E 's|^(v([0-9]+(\.[0-9]+){2}))(-([a-z0-9]+)){1}|/p:ReleaseVersion=\2 /p:VersionSuffix=\5|; s|^(v([0-9]+(\.[0-9]+){2}))$|/p:ReleaseVersion=\2|'`
run: >
dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj
/p:RepositoryUrl ${{ gitea.server_url }}/${{ gitea.repository }}/
`echo $RELEASE_VERSION | sed -E 's|^(v([0-9]+(\.[0-9]+){2}))(-([a-z0-9]+)){1}|/p:ReleaseVersion=\2 /p:VersionSuffix=\5|; s|^(v([0-9]+(\.[0-9]+){2}))$|/p:ReleaseVersion=\2|'`
- name: Publish the package to Gitea
run: dotnet nuget push --source gitea_registry --api-key ${{ secrets.NUGET_PACKAGE_TOKEN }} nupkgs/*.nupkg