2 Commits

Author SHA1 Message Date
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

View File

@@ -5,18 +5,35 @@ run-name: ${{ gitea.actor }} is building new NuGet version 🚀
on: on:
push: push:
tags: tags:
- 'v*' # Only trigger on tags like v1.0.0 - 'v*'
jobs: jobs:
buildnuget: checkout-code:
runs-on: ubuntu-latest # Gitea Actions uses standard runner labels like GitHub runs-on: ubuntu-latest # Has Git + Node.js for checkout
container:
image: mcr.microsoft.com/dotnet/sdk:10.0
steps: steps:
- name: Checkout code - name: Checkout repository
uses: actions/checkout@v3 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 - name: Restore dependencies
run: | run: |
@@ -34,9 +51,11 @@ jobs:
dotnet pack --no-build -c Release -o ./nupkg dotnet pack --no-build -c Release -o ./nupkg
- name: Push to Gitea NuGet feed - name: Push to Gitea NuGet feed
env:
GITEA_TOKEN: ${{ secrets.GITEANUGETTOKEN }}
run: | run: |
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