Files
Sharp8N.Runtime/.gitea/workflows/publish-nuget.yml
Vitali Semianiaka fd1abf2174
Some checks failed
publish-nuget / build (push) Failing after 0s
fix dir spacing
2025-12-31 12:59:09 +03:00

38 lines
1.0 KiB
YAML

name: publish-nuget
run-name: ${{ gitea.actor }} is building new Nuget version 🚀
on: [push] # Triggers the workflow on push events
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