fixed publish RepositoryUrl property
All checks were successful
.NET Publish / publish (push) Successful in 1m45s

This commit is contained in:
2023-12-13 18:52:40 +04:00
parent 5a2ae19a8e
commit e21c35a08a

View File

@@ -29,7 +29,7 @@ jobs:
RELEASE_VERSION: ${{ gitea.ref_name }} RELEASE_VERSION: ${{ gitea.ref_name }}
run: > run: >
dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj dotnet pack --no-restore --configuration Release --output nupkgs Railway/Railway.csproj
/p:RepositoryUrl ${{ gitea.server_url }}/${{ gitea.repository }}/ /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|'` `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 - name: Publish the package to Gitea