From e6257d3bed4c213190d6ec29c0bd5bf67b3bb043 Mon Sep 17 00:00:00 2001 From: Simon Diesenreiter Date: Mon, 2 Dec 2024 12:01:16 +0100 Subject: [PATCH] fix: some bugfixes, ref NOISSUE --- .gitea/conventional_commits/generate-version.sh | 5 +++-- .gitea/workflows/release.yml | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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