Files
Sharp8N.AiComponents/.gitea/workflows/publish-nuget.yml
Vitali Semianiaka ead766709b
All checks were successful
publish-nuget / build-and-publish (push) Successful in 13s
update and fix
2026-01-01 23:39:02 +03:00

44 lines
1.2 KiB
YAML

name: publish-nuget
run-name: ${{ gitea.actor }} is building new NuGet version 🚀
on:
push:
tags:
- 'v*'
workflow_dispatch:
# Optional: you can add inputs here to prompt for values when manually triggering
# inputs:
# notes:
# description: 'Notes'
# required: true
# default: 'Just CI Build'
jobs:
build-and-publish:
runs-on: ubuntu-latest
container:
image: vaibhavgawali/dotnet-node-python-openjdk:latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Restore dependencies
run: |
dotnet nuget add source --name Sharp8N https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json
dotnet restore
- name: Build project
run: |
dotnet build --no-restore -c Release
- name: Pack NuGet package
run: |
dotnet pack --no-build -c Release -o ./nupkg
- name: Push to Gitea NuGet feed
run: |
dotnet nuget push ./nupkg/*.nupkg \
--api-key ${{ secrets.GITEANUGETTOKEN }} \
--source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \
--skip-duplicate