15 Commits

Author SHA1 Message Date
5a487e6ef3 Update .gitea/workflows/publish-nuget.yml 2025-12-31 11:16:09 +00:00
c13832dd61 Update .gitea/workflows/publish-nuget.yml 2025-12-31 11:13:56 +00:00
ecec7dca3e Update s8n-runtime/s8n-runtime.csproj
Some checks failed
publish-nuget / checkout-code (push) Successful in 5s
publish-nuget / build-and-publish (push) Failing after 15s
2025-12-31 10:58:53 +00:00
87d32260d4 Update .gitea/workflows/publish-nuget.yml
Some checks failed
publish-nuget / checkout-code (push) Successful in 17s
publish-nuget / build-and-publish (push) Failing after 45s
2025-12-31 10:35:40 +00:00
b8298df37e Update .gitea/workflows/publish-nuget.yml
Some checks failed
publish-nuget / checkout-code (push) Successful in 5s
publish-nuget / build-and-publish (push) Failing after 3s
2025-12-31 10:16:53 +00:00
47dcafd024 Update .gitea/workflows/publish-nuget.yml
Some checks failed
publish-nuget / buildnuget (push) Failing after 12s
2025-12-31 10:06:53 +00:00
267d2cb812 revert config 2025-12-31 13:00:35 +03:00
fd1abf2174 fix dir spacing
Some checks failed
publish-nuget / build (push) Failing after 0s
2025-12-31 12:59:09 +03:00
4d997a3dfd t 2025-12-31 12:55:36 +03:00
9f9a897f0f t 2025-12-31 12:52:48 +03:00
833c3ea977 Update .gitea /workflows/publish-nuget.yml 2025-12-31 09:48:19 +00:00
897d13726a Update .gitea /workflows/publish-nuget.yml 2025-12-31 09:47:36 +00:00
2b4123bf2b Update .gitea /workflows/publish-nuget.yml 2025-12-31 09:42:59 +00:00
096763e89d Update .gitea /workflows/publish-nuget.yml 2025-12-31 09:41:23 +00:00
f9784adf84 push second attempt 2025-12-31 12:38:20 +03:00
4 changed files with 74 additions and 53 deletions

View File

@@ -1,52 +0,0 @@
---
kind: pipeline
type: docker
name: publish-nuget
platform:
os: linux
arch: amd64
clone:
depth: full # Needed for versioning if using GitVersion or tags
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
when:
event: [ tag ] # Only publish on Git tag
# Output: ./s8n-runtime/nupkg/Sharp8N.Runtime.1.0.0.nupkg
- name: push-to-gitea-nuget
image: mcr.microsoft.com/dotnet/sdk:10.0
environment:
GITEA_TOKEN:
from_secret: GITEANUGETTOKEN
commands:
- cd s8n-runtime
- |
dotnet nuget push ./nupkg/*.nupkg \
--api-key $GITEA_TOKEN \
--source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \
--skip-duplicate
when:
event: [ tag ] # Only publish on Git tag
trigger:
tags:
- v* # Optional: only tags like v1.0.0

View File

@@ -0,0 +1,71 @@
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:
logLevel:
description: 'Log level'
required: true
default: 'warning'
jobs:
checkout-code:
runs-on: ubuntu-latest # Has Git + Node.js for checkout
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Needed for version detection if used
- name: Upload source code as artifact
uses: actions/upload-artifact@v3
with:
name: source-code
path: ./
retention-days: 1
build-and-publish:
runs-on: ubuntu-latest
container:
image: vaibhavgawali/dotnet-node-python-openjdk:latest
needs: checkout-code
steps:
- name: Download source code
uses: actions/download-artifact@v3
with:
name: source-code
path: .
- 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
environment:
GITEA_TOKEN:
from_secret: GITEANUGETTOKEN
env:
GITEA_TOKEN: ${{ secrets.GITEANUGETTOKEN }}
run: |
cd s8n-runtime
dotnet nuget push ./nupkg/*.nupkg \
--api-key $GITEA_TOKEN \
--source https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json \
--skip-duplicate

View File

@@ -2,4 +2,5 @@
Sharp8N public Core repository Sharp8N public Core repository
Release 1.0.1 (pre) Release 1.0.2 (pre)
t2

View File

@@ -9,6 +9,7 @@
<!-- Package properties below --> <!-- Package properties below -->
<IsPackable>true</IsPackable>
<PackageId>Sharp8N.Runtime</PackageId> <PackageId>Sharp8N.Runtime</PackageId>
<Version>1.0.0</Version> <Version>1.0.0</Version>
<Authors>Vitalick S</Authors> <Authors>Vitalick S</Authors>