Skip to content

Commit 98173a3

Browse files
author
Piotr Stachaczynski
committed
feat: docs
1 parent 8a776fb commit 98173a3

2 files changed

Lines changed: 11 additions & 3 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,14 @@ jobs:
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4444
run: |
45+
# Create a tag using today's date
4546
TAG_NAME="v$(date +'%Y.%m.%d')"
46-
gh release create "$TAG_NAME" ./artifacts/*.nupkg --title "Release $TAG_NAME" --notes "Automated release of NuGet package."
47+
# Get the NuGet package file name from the artifacts folder and remove its extension for the release title
48+
NUPKG_FILE=$(basename $(ls ./artifacts/*.nupkg))
49+
RELEASE_NAME="${NUPKG_FILE%.*}"
50+
# Get the newest markdown file from the Releases folder and read its content as release notes
51+
NEWEST_NOTES=$(ls -t Releases/*.md | head -n1)
52+
RELEASE_NOTES=$(cat "$NEWEST_NOTES")
53+
# Create the GitHub release using the tag, NuGet package and release notes
54+
gh release create "$TAG_NAME" ./artifacts/*.nupkg --title "$RELEASE_NAME" --notes "$RELEASE_NOTES"
4755
shell: bash

src/MaIN.Core/.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
<package>
33
<metadata>
44
<id>MaIN.NET</id>
5-
<version>0.0.6-alpha</version>
5+
<version>0.0.7-pre</version>
66
<authors>Wisedev</authors>
77
<owners>Wisedev</owners>
88
<icon>favicon.png</icon>
9-
<description>MaIN.NET</description>
9+
<description>MaIN.NET - Package designed to streamline the integration of large language models (LLMs) into advanced AI workflows.</description>
1010
<license type="expression">MIT</license>
1111
<projectUrl>https://github.com/wisedev-code/M.A.I.N</projectUrl>
1212
<repository url="https://github.com/wisedev-code/M.A.I.N" type="git" />

0 commit comments

Comments
 (0)