Files
Sharp8N.Runtime/.gitea/workflows/publish-nuget.yml
VitalickS 47dcafd024
Some checks failed
publish-nuget / buildnuget (push) Failing after 12s
Update .gitea/workflows/publish-nuget.yml
2025-12-31 10:06:53 +00:00

42 lines
1.0 KiB
YAML

name: publish-nuget
run-name: ${{ gitea.actor }} is building new NuGet version 🚀
on:
push:
tags:
- 'v*' # Only trigger on tags like v1.0.0
jobs:
buildnuget:
runs-on: ubuntu-latest # Gitea Actions uses standard runner labels like GitHub
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Restore dependencies
run: |
cd s8n-runtime
dotnet restore
- name: Build project
run: |
cd s8n-runtime
dotnet build --no-restore -c Release
- name: Pack NuGet package
run: |
cd s8n-runtime
dotnet pack --no-build -c Release -o ./nupkg
- name: Push to Gitea NuGet feed
run: |
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