-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extended IMessageStreamConfigurator.cs with optional headers and crea…
…ted nuget publish script version-1.1.0
- Loading branch information
Showing
9 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Iggy_SDK.Contracts.Http; | ||
|
||
public sealed class HttpRequestHeaderContract | ||
{ | ||
public required string Name { get; init; } | ||
public required IEnumerable<string> Values { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
# Function to extract the version number from the commit message using regular expressions | ||
function extract_version { | ||
local commit_message="$1" | ||
|
||
if [[ $commit_message =~ version-([0-9]+\.[0-9]+\.[0-9]+) ]]; then | ||
version=${BASH_REMATCH[1]} | ||
echo "$version" | ||
else | ||
echo "Version not found in the commit message." | ||
exit 1 | ||
fi | ||
} | ||
|
||
commit_message=$(git log -1 --pretty=format:"%s") | ||
|
||
version=$(extract_version "$commit_message") | ||
|
||
echo "Extracted version: $version" | ||
|
||
echo "Executing after success scripts on branch $GITHUB_REF_NAME" | ||
echo "Triggering Nuget package build" | ||
|
||
cd Iggy_SDK | ||
dotnet pack -c release /p:PackageVersion=$version --no-restore -o . | ||
|
||
echo "Uploading Iggy package to Nuget using branch $GITHUB_REF_NAME" | ||
|
||
case "$GITHUB_REF_NAME" in | ||
"master") | ||
dotnet nuget push *.nupkg -k $NUGET_API_KEY -s https://api.nuget.org/v3/index.json | ||
echo "Published package succesfully!" | ||
;; | ||
*) | ||
echo "Skipping NuGet package push as the branch is not master." | ||
;; | ||
esac | ||
|
||
|