Compare commits
19 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 1ca0ded172 | |||
| 881c8def09 | |||
| 75179f6255 | |||
| 0b294905c7 | |||
| 5a487e6ef3 | |||
| c13832dd61 | |||
| ecec7dca3e | |||
| 87d32260d4 | |||
| b8298df37e | |||
| 47dcafd024 | |||
| 267d2cb812 | |||
| fd1abf2174 | |||
| 4d997a3dfd | |||
| 9f9a897f0f | |||
| 833c3ea977 | |||
| 897d13726a | |||
| 2b4123bf2b | |||
| 096763e89d | |||
| f9784adf84 |
@@ -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
|
|
||||||
66
.gitea/workflows/publish-nuget.yml
Normal file
66
.gitea/workflows/publish-nuget.yml
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
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:
|
||||||
|
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
|
||||||
|
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
|
||||||
@@ -2,4 +2,5 @@
|
|||||||
|
|
||||||
Sharp8N public Core repository
|
Sharp8N public Core repository
|
||||||
|
|
||||||
Release 1.0.1 (pre)
|
Release 1.0.2 (pre)
|
||||||
|
t2
|
||||||
9
s8n-runtime/README.md
Normal file
9
s8n-runtime/README.md
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
### Set up this registry from the command line:
|
||||||
|
```
|
||||||
|
dotnet nuget add source --name Sharp8N --username your_username --password your_token https://code.sharp8n.com/api/packages/Sharp8N/nuget/index.json
|
||||||
|
```
|
||||||
|
### To install the package using NuGet, run the following command:
|
||||||
|
```
|
||||||
|
dotnet add package --source Sharp8N --version 1.0.10 Sharp8N.Runtime
|
||||||
|
```
|
||||||
|
For more information on the NuGet registry, see the [documentation](https://docs.gitea.com/usage/packages/nuget/).
|
||||||
@@ -9,17 +9,19 @@
|
|||||||
|
|
||||||
|
|
||||||
<!-- 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.10</Version>
|
||||||
<Authors>Vitalick S</Authors>
|
<Authors>Vitalick S</Authors>
|
||||||
<Company>Sharp8N</Company>
|
<Company>Sharp8N</Company>
|
||||||
<Description>Sharp8N runtime library, that allows run s8n workflows</Description>
|
<Description>Sharp8N runtime library, that allows run s8n workflows</Description>
|
||||||
<RepositoryUrl>code.sharp8n.com</RepositoryUrl>
|
<RepositoryUrl>Sharp8N/Sharp8N.Runtime</RepositoryUrl>
|
||||||
|
<PackageReadmeFile>README.md</PackageReadmeFile>
|
||||||
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Microsoft.AspNetCore.OpenApi" Version="10.0.0" />
|
<None Include="README.md" Pack="true" PackagePath="\" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
Reference in New Issue
Block a user