Skip to content

Commit 598ba5f

Browse files
authored
Update nuget-publish.yml
Update github action to publish to internal feed.
1 parent 3e51d2f commit 598ba5f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nuget-publish.yml

+6-1
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,9 @@ jobs:
3535
- name: Publish to Episerver
3636
run: dotnet nuget push ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/bin/Release/Optimizely.Graph.Source.Sdk.${{ steps.semver.outputs.version }}.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/episerver/index.json
3737
- name: Publish to Optimizely
38-
run: dotnet nuget push ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/bin/Release/Optimizely.Graph.Source.Sdk.${{ steps.semver.outputs.version }}.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source https://api.nuget.optimizely.com/v3/index.json
38+
run: |
39+
$sourceDirectory = '${{github.workspace}}\Optimizely.Graph.Source.Sdk\Optimizely.Graph.Source.Sdk\bin\Release\'
40+
$destinationDirectory = '\\nuget.ep.se\Releases\thisweek'
41+
42+
$file = Get-ChildItem -Path "$sourceDirectory" -Recurse | Where-Object {$_.Name -match 'Optimizely.Graph.Source.Sdk.${{ steps.semver.outputs.version }}.nupkg'}
43+
xcopy $file.FullName $destinationDirectory /Y

0 commit comments

Comments
 (0)