try agian nuget
Some checks failed
Build NuGet / build (push) Failing after 1m2s

This commit is contained in:
2026-04-06 00:22:13 -04:00
parent c538bf12dd
commit ed75508349

View File

@@ -1,46 +1,36 @@
name: Validate dotnet
name: Build NuGet
on:
pull_request:
paths-ignore:
- '**.md'
push:
branches:
- master
- releases/*
paths-ignore:
- '**.md'
branches: [ master ]
jobs:
setup-version:
runs-on: ${{ matrix.operating-system }}
strategy:
fail-fast: false
matrix:
operating-system:
[
ubuntu-latest,
ubuntu-22.04,
# windows-latest,
# macos-15-intel,
# macos-latest
]
dotnet-version: ['10.0'] #['8.0', '9.0', '10.0']
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Clear toolcache
shell: pwsh
run: __tests__/clear-toolcache.ps1 ${{ runner.os }}
- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: ./
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Verify installed version
shell: pwsh
run: |
__tests__/verify-dotnet.ps1 -Patterns "^${{ matrix.dotnet-version }}"
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: Restore
run: dotnet restore
- name: Build
run: dotnet build -c Release
- name: Pack
run: dotnet pack -c Release -o ./packages
- name: Publish
run: |
dotnet nuget push ./packages/*.nupkg \
--source "gitea" \
# --api-key ${{ secrets.NUGET_KEY }}
# name: Gitea Actions Demo
# run-name: ${{ gitea.actor }} is testing out Gitea Actions