Skip to content

Commit f2169d6

Browse files
authored
Update nuget-publish.yml
Updates to t3 upload.
1 parent 598ba5f commit f2169d6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/nuget-publish.yml

+9-2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ env:
99
jobs:
1010
Publish:
1111
runs-on: ubuntu-latest
12+
outputs:
13+
releaseVersion: ${{ steps.semver.outputs.version }}
1214
steps:
1315
- uses: actions/checkout@v4
1416
with:
@@ -34,10 +36,15 @@ jobs:
3436
run: dotnet pack ./Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk/Optimizely.Graph.Source.Sdk.csproj --configuration Release -p:PackageVersion=${{ steps.semver.outputs.version }}
3537
- name: Publish to Episerver
3638
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
3845
run: |
3946
$sourceDirectory = '${{github.workspace}}\Optimizely.Graph.Source.Sdk\Optimizely.Graph.Source.Sdk\bin\Release\'
4047
$destinationDirectory = '\\nuget.ep.se\Releases\thisweek'
4148
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'}
4350
xcopy $file.FullName $destinationDirectory /Y

0 commit comments

Comments
 (0)