File tree 1 file changed +14
-2
lines changed
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
Publish :
11
11
runs-on : ubuntu-latest
12
+ outputs :
13
+ releaseVersion : ${{ steps.semver.outputs.version }}
12
14
steps :
13
15
- uses : actions/checkout@v4
14
16
with :
34
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 }}
35
37
- name : Publish to Episerver
36
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
37
- - 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
39
+
40
+ upload_T3 :
41
+ runs-on : [self-hosted]
42
+ needs : [Publish]
43
+ steps :
44
+ - name : Publish Nuget
45
+ run : |
46
+ $sourceDirectory = '${{github.workspace}}\Optimizely.Graph.Source.Sdk\Optimizely.Graph.Source.Sdk\bin\Release\'
47
+ $destinationDirectory = '\\nuget.ep.se\Releases\thisweek'
48
+
49
+ $file = Get-ChildItem -Path "$sourceDirectory" -Recurse | Where-Object {$_.Name -match 'Optimizely.Graph.Source.Sdk.${{ needs.Publish.outputs.releaseVersion }}.nupkg'}
50
+ xcopy $file.FullName $destinationDirectory /Y
You can’t perform that action at this time.
0 commit comments