Skip to content

Commit 0431186

Browse files
committed
updated workflow
1 parent 6934108 commit 0431186

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

.github/workflows/nuget-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
fetch-depth: 0
2727
- name: Setup .NET
2828
uses: actions/setup-dotnet@v4
29-
- name: Pack
29+
- name: Create NuGet package
3030
run: dotnet pack src/TALXIS.CLI/TALXIS.CLI.csproj --configuration Release
3131
- uses: actions/upload-artifact@v4
3232
with:
3333
name: nuget
3434
if-no-files-found: error
3535
retention-days: 7
36-
path: src/TALXIS.CLI/bin/Release/
36+
path: src/TALXIS.CLI/bin/Release/*.nupkg
3737

3838
deploy:
3939
needs: [ create_nuget ]
@@ -50,6 +50,6 @@ jobs:
5050
uses: actions/setup-dotnet@v4
5151
- name: Publish NuGet package
5252
run: |
53-
for file in ${{ env.NuGetDirectory }}/*.nupkg; do
54-
dotnet nuget push "$file" --api-key "${{ secrets.NUGET_API_KEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
55-
done
53+
foreach($file in (Get-ChildItem "${{ env.NuGetDirectory }}" -Recurse -Include *.nupkg)) {
54+
dotnet nuget push $file --api-key "${{ secrets.NUGET_APIKEY }}" --source https://api.nuget.org/v3/index.json --skip-duplicate
55+
}

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<Version>1.0.0</Version>
55
<AssemblyVersion>1.0.0.0</AssemblyVersion>
66
<FileVersion>1.0.0.0</FileVersion>
7-
<PackageVersion>1.0.0</PackageVersion>
7+
<PackageVersion>1.0.0.0</PackageVersion>
88
<Company>TALXIS</Company>
99
<RepositoryUrl>https://github.com/TALXIS/tools-cli</RepositoryUrl>
1010
<RepositoryType>git</RepositoryType>

0 commit comments

Comments
 (0)