Skip to content

Commit 7384c52

Browse files
committed
Add action step to push package to Octopus feed
1 parent ad7caf7 commit 7384c52

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
name: ${{ matrix.name }}
6868
path: nuget.package/runtimes/${{ matrix.name }}
6969
package:
70-
name: Create package
71-
needs: build
72-
runs-on: ubuntu-24.04
73-
env:
74-
DOTNET_NOLOGO: true
75-
steps:
70+
name: Create package
71+
needs: build
72+
runs-on: ubuntu-24.04
73+
env:
74+
DOTNET_NOLOGO: true
75+
steps:
7676
- name: Checkout
7777
uses: actions/checkout@v4.2.2
7878
with:
@@ -92,3 +92,10 @@ jobs:
9292
with:
9393
name: NuGet package
9494
path: ./nuget.package/*.nupkg
95+
- name: Push package to feed 🐙
96+
id: push-feed
97+
shell: bash
98+
env:
99+
FEED_API_KEY: ${{ secrets.FEED_API_KEY }}
100+
FEED_SOURCE: ${{ secrets.FEED_SOURCE }}
101+
run: dotnet nuget push ./nuget.package/*.nupkg --api-key "$FEED_API_KEY" --source "$FEED_SOURCE"

0 commit comments

Comments
 (0)