Skip to content

Commit 68e81c3

Browse files
committed
publish nugets to github packages
1 parent 446a3bc commit 68e81c3

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,22 @@ jobs:
3737
- name: Show packaged files
3838
run: ls -lh ./nupkgs
3939

40-
- name: Push NuGet packages
40+
- name: Push to NuGet.org
4141
run: |
4242
find ./nupkgs -name "*.nupkg" -exec dotnet nuget push {} \
4343
--api-key ${{ secrets.NUGET_API_KEY }} \
4444
--source https://api.nuget.org/v3/index.json \
4545
--skip-duplicate \;
46+
47+
- name: Push to GitHub Packages
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
run: |
51+
OWNER=$(echo "${{ github.repository_owner }}" | tr '[:upper:]' '[:lower:]')
52+
find ./nupkgs -name "*.nupkg" -exec dotnet nuget push {} \
53+
--api-key $GITHUB_TOKEN \
54+
--source "https://nuget.pkg.github.com/${OWNER}/index.json" \
55+
--skip-duplicate \;
4656
4757
- name: Publish for Linux (linux-x64)
4858
run: dotnet publish src/AiHedgeFund.Console/AiHedgeFund.Console.csproj -c Release -r linux-x64 --self-contained true -o out-linux

src/AiHedgeFund.Agents/AiHedgeFund.Agents.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Nullable>enable</Nullable>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<PackageId>AiHedgeFund.Agents</PackageId>
8-
<Version>0.2.7</Version>
8+
<Version>0.2.8</Version>
99
<Authors>Riccardo Di Nuzzo</Authors>
1010
<Company>Amarcode ltd</Company>
1111
<Description>Trading AI agents implementing investment philosophies (Buffett, Wood, etc.) for strategic signal generation.</Description>

src/AiHedgeFund.Contracts/AiHedgeFund.Contracts.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<Nullable>enable</Nullable>
66
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
77
<PackageId>AiHedgeFund.Contracts</PackageId>
8-
<Version>0.2.7</Version>
8+
<Version>0.2.8</Version>
99
<Authors>Riccardo Di Nuzzo</Authors>
1010
<Company>Amarcode Studios Ltd</Company>
1111
<Description>Core contract interfaces and data models for AiHedgeFund strategy agents.</Description>

src/AiHedgeFund.Data/AiHedgeFund.Data.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<Nullable>enable</Nullable>
77
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
88
<PackageId>AiHedgeFund.Agents</PackageId>
9-
<Version>0.2.7</Version>
9+
<Version>0.2.8</Version>
1010
<Authors>Riccardo Di Nuzzo</Authors>
1111
<Company>Amarcode ltd</Company>
1212
<Description>Provides structured financial data access and LLM interaction logic for AI-driven trading systems.</Description>

0 commit comments

Comments
 (0)