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