diff --git a/.gitea/conventional_commits/generate-version.sh b/.gitea/conventional_commits/generate-version.sh index b4654db..828c9d7 100755 --- a/.gitea/conventional_commits/generate-version.sh +++ b/.gitea/conventional_commits/generate-version.sh @@ -86,8 +86,9 @@ start() { echo "New version: $new_version" gitchangelog | grep -v "[rR]elease:" > HISTORY.md - git add DotnetTestLib/VERSION HISTORY.md - echo $new_version > DotnetTestLib/VERSION + echo $new_version > project_name/VERSION + git add project_name/VERSION + git add HISTORY.md git commit -m "release: version $new_version 🚀" echo "creating git tag : $new_version" git tag $new_version diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 5d34921..6dd2765 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -64,5 +64,5 @@ jobs: QUOTED_REPOSITORY_SOURCE_NAME=$(dotnet nuget config get all | grep "/packages/${REPOSITORY_OWNER}/nuget/index.json" | awk '{print $2}' | awk -F= '{print $2}') REPOSITORY_SOURCE_NAME=${QUOTED_REPOSITORY_SOURCE_NAME:1:-1} fi - dotnet pack --include-symbols --include-source -p:PackageVersion=$(cat $REPOSITORY_NAME/VERSION) DotnetTestLib.sln + dotnet pack --include-symbols --include-source -p:PackageVersion=$(cat $REPOSITORY_NAME/VERSION) project_name.sln dotnet nuget push -k $GITEA_PAT --source $REPOSITORY_SOURCE_NAME $REPOSITORY_NAME/bin/Release/$REPOSITORY_NAME.$(cat $REPOSITORY_NAME/VERSION).symbols.nupkg