Skip to content

Commit 116f1c8

Browse files
committed
uncomment publish step
1 parent 024187b commit 116f1c8

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

.github/workflows/release.yml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -68,33 +68,33 @@ jobs:
6868
- name: Validate package
6969
run: meziantou.validate-nuget-package (Get-ChildItem "${{ env.NuGetDirectory }}/*.nupkg") --excluded-rule-ids 101,111,74,72,61,12
7070

71-
# publish:
72-
# runs-on: ubuntu-latest
73-
# needs:
74-
# - create_nuget
75-
# - validate_nuget
76-
# steps:
77-
# # Download the NuGet package created in the previous job
78-
# - uses: actions/download-artifact@v4
79-
# with:
80-
# name: nuget
81-
# path: ${{ env.NuGetDirectory }}
71+
publish:
72+
runs-on: ubuntu-latest
73+
needs:
74+
- create_nuget
75+
- validate_nuget
76+
steps:
77+
# Download the NuGet package created in the previous job
78+
- uses: actions/download-artifact@v4
79+
with:
80+
name: nuget
81+
path: ${{ env.NuGetDirectory }}
8282

83-
# # Install the .NET SDK indicated in the global.json file
84-
# - name: Setup .NET Core
85-
# uses: actions/setup-dotnet@v4
86-
# with:
87-
# dotnet-version: ${{ env.DOTNET_VERSION }}
83+
# Install the .NET SDK indicated in the global.json file
84+
- name: Setup .NET Core
85+
uses: actions/setup-dotnet@v4
86+
with:
87+
dotnet-version: ${{ env.DOTNET_VERSION }}
8888

89-
# # Publish all NuGet packages to NuGet.org
90-
# - name: Publish NuGet package
91-
# run: |
92-
# foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
93-
# dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
94-
# }
89+
# Publish all NuGet packages to NuGet.org
90+
- name: Publish NuGet package
91+
run: |
92+
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
93+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json
94+
}
9595
96-
# - name: Upload Release Asset
97-
# uses: shogo82148/actions-upload-release-asset@v1
98-
# with:
99-
# upload_url: ${{ github.event.release.upload_url }}
100-
# asset_path: ${{ env.NuGetDirectory }}/*.nupkg
96+
- name: Upload Release Asset
97+
uses: shogo82148/actions-upload-release-asset@v1
98+
with:
99+
upload_url: ${{ github.event.release.upload_url }}
100+
asset_path: ${{ env.NuGetDirectory }}/*.nupkg

0 commit comments

Comments
 (0)