Skip to content

Commit 6b7ffab

Browse files
Refactor build-and-publish workflow to remove pwsh usage
Removed PowerShell shell specification from signing and publishing steps in the workflow.
1 parent 02807e9 commit 6b7ffab

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
run: dotnet pack ./Infragistics.QueryBuilder.Executor.csproj --no-build --no-restore --configuration ${BUILD_CONFIGURATION} -p:PackageVersion=${VERSION} -o "${{ github.workspace }}/nupkg"
4646

4747
- name: Sign NuGet package (using dotnet nuget sign)
48-
shell: pwsh
4948
env:
5049
SIGNING_CERTIFICATE_PASSWORD: ${{ secrets.SIGNING_CERTIFICATE_PASSWORD }}
5150
SIGNING_CERTIFICATE_TIMESTAMP_URL: ${{ vars.SIGNING_CERTIFICATE_TIMESTAMP_URL }}
@@ -58,15 +57,4 @@ jobs:
5857
user: ${{ secrets.INFRAGISTICS_NUGET_ORG_USER }}
5958

6059
- name: Publish to NuGet.org
61-
shell: pwsh
6260
run: dotnet nuget push ${{ github.workspace }}/nupkg/Infragistics.QueryBuilder.Executor.${VERSION}.nupkg --api-key ${{ steps.nuget-login.outputs.NUGET_API_KEY }} --source "https://api.nuget.org/v3/index.json"
63-
64-
- name: Clean up certificate
65-
if: always()
66-
shell: pwsh
67-
run: |
68-
$certPath = "${{ runner.temp }}\certificate.pfx"
69-
if (Test-Path $certPath) {
70-
Remove-Item $certPath -Force
71-
Write-Host "Certificate cleaned up"
72-
}

0 commit comments

Comments
 (0)