name: publish-nuget run-name: ${{ gitea.actor }} is building new Nuget version 🚀 on: push: tags: - 'v*' jobs: build: steps: - name: restore image: mcr.microsoft.com/dotnet/sdk:10.0 commands: - cd s8n-runtime - dotnet restore - name: build image: mcr.microsoft.com/dotnet/sdk:10.0 commands: - cd s8n-runtime - dotnet build --no-restore -c Release - name: pack image: mcr.microsoft.com/dotnet/sdk:10.0 commands: - cd s8n-runtime - dotnet pack --no-build -c Release -o ./nupkg # Output: ./s8n-runtime/nupkg/Sharp8N.Runtime.1.0.0.nupkg - name: push-to-gitea-nuget image: mcr.microsoft.com/dotnet/sdk:10.0 commands: - cd s8n-runtime - | dotnet nuget push ./nupkg/*.nupkg \ --api-key ${{ secrets.GITEANUGETTOKEN }} \ --source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \ --skip-duplicate