File tree 1 file changed +18
-2
lines changed
1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -36,14 +36,30 @@ jobs:
36
36
run : dotnet pack ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk.csproj --configuration Release -p:PackageVersion=${{ steps.semver.outputs.version }}
37
37
- name : Publish to Episerver
38
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://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
+
40
45
upload_T3 :
41
46
runs-on : [self-hosted]
42
47
needs : [Publish]
43
48
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
44
60
- name : Publish Nuget
45
61
run : |
46
- $sourceDirectory = '${{github.workspace}}\Optimizely.Graph.Source.Sdk\Optimizely.Graph.Source.Sdk\bin\Release\ '
62
+ $sourceDirectory = '${{github.workspace}}\artifacts '
47
63
$destinationDirectory = '\\nuget.ep.se\Releases\thisweek'
48
64
49
65
$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