File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,30 @@ jobs:
3636 run : dotnet pack ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk.csproj --configuration Release -p:PackageVersion=${{ steps.semver.outputs.version }}
3737 - name : Publish to Episerver
3838 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
39-
39+ - name : Upload Artifact
40+ uses : actions/upload-artifact@v4
41+ with :
42+ name : Optimizely.Graph.Source.Sdk.${{ steps.semver.outputs.version }}
43+ path : ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/bin/Release/Optimizely.Graph.Source.Sdk.${{ steps.semver.outputs.version }}.nupkg
44+
4045 upload_T3 :
4146 runs-on : [self-hosted]
4247 needs : [Publish]
4348 steps :
49+ - name : Create artifacts folder
50+ run : |
51+ if (Test-Path -Path "artifacts") {
52+ Remove-Item -LiteralPath "artifacts" -Force -Recurse
53+ }
54+ New-Item -Path "artifacts" -ItemType Directory
55+ - name : Download artifacts
56+ uses : actions/download-artifact@v4
57+ with :
58+ name : Optimizely.Graph.Source.Sdk.${{ needs.Publish.outputs.releaseVersion }}
59+ path : artifacts
4460 - name : Publish Nuget
4561 run : |
46- $sourceDirectory = '${{github.workspace}}\Optimizely.Graph.Source.Sdk\Optimizely.Graph.Source.Sdk\bin\Release\ '
62+ $sourceDirectory = '${{github.workspace}}\artifacts '
4763 $destinationDirectory = '\\nuget.ep.se\Releases\thisweek'
4864
4965 $file = Get-ChildItem -Path "$sourceDirectory" -Recurse | Where-Object {$_.Name -match 'Optimizely.Graph.Source.Sdk.${{ needs.Publish.outputs.releaseVersion }}.nupkg'}
You can’t perform that action at this time.
0 commit comments