Skip to content

Commit 601baa4

Browse files
committed
Try regular key failover
1 parent f0e8f47 commit 601baa4

1 file changed

Lines changed: 31 additions & 8 deletions

File tree

.github/workflows/build-and-deploy.yml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,10 @@ jobs:
9696

9797
- name: Pack
9898
working-directory: src
99-
run: dotnet pack CloudNimble.Supermemory/CloudNimble.Supermemory.csproj --configuration Release --no-build --output ../artifacts /p:PackageVersion=${{ steps.version.outputs.VERSION }}
99+
shell: bash
100+
run: |
101+
dotnet pack CloudNimble.Supermemory/CloudNimble.Supermemory.csproj --configuration Release --no-build --output ../artifacts /p:PackageVersion=${{ steps.version.outputs.VERSION }}
102+
dotnet pack CloudNimble.Agents.AI.Supermemory/CloudNimble.Agents.AI.Supermemory.csproj --configuration Release --no-build --output ../artifacts /p:PackageVersion=${{ steps.version.outputs.VERSION }}
100103
101104
- name: Upload artifacts
102105
uses: actions/upload-artifact@v6
@@ -151,15 +154,28 @@ jobs:
151154
echo "BRANCH_TYPE=dev" >> $env:GITHUB_OUTPUT
152155
}
153156
154-
- name: NuGet login (Trusted Publishing)
157+
- name: Try NuGet Trusted Publishing
158+
id: nuget_trusted
155159
uses: nuget/login@v1
156-
id: nuget_login
160+
continue-on-error: true
157161
with:
158-
user: ${{ secrets.NUGET_USER }}
162+
allowed-package-owners: CloudNimble
159163

160-
- name: Push to NuGet
164+
- name: Push to NuGet (Trusted Publishing)
165+
if: steps.nuget_trusted.outcome == 'success'
161166
shell: bash
162-
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ steps.nuget_login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
167+
run: |
168+
echo "🔐 Using Trusted Publishing..."
169+
dotnet nuget push ./artifacts/*.nupkg --source https://api.nuget.org/v3/index.json --skip-duplicate
170+
171+
- name: Push to NuGet (API Key Fallback)
172+
if: steps.nuget_trusted.outcome == 'failure'
173+
shell: bash
174+
env:
175+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}
176+
run: |
177+
echo "🔑 Trusted Publishing not available, using API key..."
178+
dotnet nuget push ./artifacts/*.nupkg --api-key $NUGET_API_KEY --source https://api.nuget.org/v3/index.json --skip-duplicate
163179
164180
- name: Update preview suffix (dev branch)
165181
if: steps.version.outputs.BRANCH_TYPE == 'dev'
@@ -216,11 +232,18 @@ jobs:
216232
version="${{ steps.version.outputs.VERSION }}"
217233
{
218234
echo "RELEASE_BODY<<BODY"
219-
echo "## CloudNimble.Supermemory v${version}"
235+
echo "## Supermemory .NET SDK v${version}"
220236
echo ""
221237
echo "### Installation"
238+
echo ""
239+
echo "**Core SDK:**"
240+
echo "\`\`\`bash"
241+
echo "dotnet add package Supermemory --version ${version}"
242+
echo "\`\`\`"
243+
echo ""
244+
echo "**Microsoft Agent Framework Integration:**"
222245
echo "\`\`\`bash"
223-
echo "dotnet add package CloudNimble.Supermemory --version ${version}"
246+
echo "dotnet add package CloudNimble.Agents.AI.Supermemory --version ${version}"
224247
echo "\`\`\`"
225248
echo ""
226249
echo "### What's Changed"

0 commit comments

Comments
 (0)