revert config

This commit is contained in:
2025-12-31 13:00:35 +03:00
parent fd1abf2174
commit 267d2cb812

View File

@@ -1,10 +1,15 @@
kind: pipeline
type: docker
name: publish-nuget name: publish-nuget
run-name: ${{ gitea.actor }} is building new Nuget version 🚀 run-name: ${{ gitea.actor }} is building new Nuget version 🚀
on: [push] # Triggers the workflow on push events platform:
os: linux
arch: amd64
clone:
depth: full # Needed for versioning if using GitVersion or tags
jobs:
build:
steps: steps:
- name: restore - name: restore
image: mcr.microsoft.com/dotnet/sdk:10.0 image: mcr.microsoft.com/dotnet/sdk:10.0
@@ -23,15 +28,25 @@ jobs:
commands: commands:
- cd s8n-runtime - cd s8n-runtime
- dotnet pack --no-build -c Release -o ./nupkg - dotnet pack --no-build -c Release -o ./nupkg
when:
event: [ tag ] # Only publish on Git tag
# Output: ./s8n-runtime/nupkg/Sharp8N.Runtime.1.0.0.nupkg # Output: ./s8n-runtime/nupkg/Sharp8N.Runtime.1.0.0.nupkg
- name: push-to-gitea-nuget - name: push-to-gitea-nuget
image: mcr.microsoft.com/dotnet/sdk:10.0 image: mcr.microsoft.com/dotnet/sdk:10.0
environment:
GITEA_TOKEN:
from_secret: GITEANUGETTOKEN
commands: commands:
- cd s8n-runtime - cd s8n-runtime
- | - |
dotnet nuget push ./nupkg/*.nupkg \ dotnet nuget push ./nupkg/*.nupkg \
--api-key ${{ secrets.GITEANUGETTOKEN }} \ --api-key $GITEA_TOKEN \
--source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \ --source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \
--skip-duplicate --skip-duplicate
when:
event: [ tag ] # Only publish on Git tag
trigger:
tags:
- v* # Optional: only tags like v1.0.0