Skip to content

Commit aa75067

Browse files
committed
ci(workflow): upgrade dotnetcore workflow to latest action versions
- Update actions/checkout from v2 to v4 for improved stability - Upgrade actions/setup-dotnet from v1 to v4 - Change dotnet version specifier to 8.0.x for flexibility - Modify nuget push command to use single asterisk wildcard pattern - Remove redundant '--no-symbols true' flag to '--no-symbols' - Retain nuget source addition step with existing credentials and config
1 parent da8e260 commit aa75067

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/dotnetcore.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717
- name: Setup .NET Core
18-
uses: actions/setup-dotnet@v1
18+
uses: actions/setup-dotnet@v4
1919
with:
20-
dotnet-version: 8.0.100
20+
dotnet-version: 8.0.x
2121
- name: Install dependencies
2222
run: dotnet restore
2323
- name: Pack solution
2424
run: dotnet pack --configuration Release -o out --no-restore
2525
- name: Push nuget packages to Nuget registry
26-
run: dotnet nuget push ./out/**/*.nupkg --skip-duplicate --no-symbols true -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json
26+
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols -k ${{secrets.NUGET_TOKEN}} -s https://api.nuget.org/v3/index.json
2727
- name: Add GitHub registry as nuget source
2828
run: dotnet nuget add source https://nuget.pkg.github.com/kibnet/index.json --name github --username kibnet --password ${{secrets.GITHUB_TOKEN}} --store-password-in-clear-text
2929
- name: Push nuget packages to GitHub registry
30-
run: dotnet nuget push ./out/**/*.nupkg --skip-duplicate --no-symbols true -s "github"
30+
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols -s "github"

0 commit comments

Comments
 (0)