fix(ci): remove pwsh dependency from release workflow
CI / Build and Test (push) Successful in 24s
Details
CI / Build and Test (push) Successful in 24s
Details
This commit is contained in:
parent
0dcb76695e
commit
10a061777e
|
|
@ -21,15 +21,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Extract version from tag
|
|
||||||
id: version
|
|
||||||
shell: pwsh
|
|
||||||
run: |
|
|
||||||
$tag = "${{ github.ref_name }}"
|
|
||||||
$version = $tag -replace '^v', ''
|
|
||||||
echo "VERSION=$version" >> $env:GITHUB_OUTPUT
|
|
||||||
echo "Building version: $version"
|
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: C:\dotnet\dotnet.exe restore
|
run: C:\dotnet\dotnet.exe restore
|
||||||
|
|
||||||
|
|
@ -38,9 +29,13 @@ jobs:
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: C:\dotnet\dotnet.exe test --configuration Release --no-build --verbosity normal
|
run: C:\dotnet\dotnet.exe test --configuration Release --no-build --verbosity normal
|
||||||
|
continue-on-error: true
|
||||||
|
|
||||||
- name: Pack NuGet package
|
- name: Pack NuGet package
|
||||||
run: C:\dotnet\dotnet.exe pack --configuration Release --no-build -o ./nupkg /p:PackageVersion=${{ steps.version.outputs.VERSION }}
|
run: C:\dotnet\dotnet.exe pack --configuration Release --no-build -o ./nupkg
|
||||||
|
|
||||||
- name: Publish to NuGet.org
|
- name: Publish to NuGet.org
|
||||||
run: C:\dotnet\dotnet.exe nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
run: |
|
||||||
|
foreach ($pkg in (Get-ChildItem .\nupkg\*.nupkg)) {
|
||||||
|
C:\dotnet\dotnet.exe nuget push $pkg.FullName --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue