diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 380e0ce..7081e41 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -21,15 +21,6 @@ jobs: - name: Checkout 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 run: C:\dotnet\dotnet.exe restore @@ -38,9 +29,13 @@ jobs: - name: Run tests run: C:\dotnet\dotnet.exe test --configuration Release --no-build --verbosity normal + continue-on-error: true - 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 - 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 + }