Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b8298df37e |
@@ -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
|
||||||
|
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:
|
container:
|
||||||
image: mcr.microsoft.com/dotnet/sdk:10.0
|
image: mcr.microsoft.com/dotnet/sdk:10.0
|
||||||
|
needs: checkout-code
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Download source code
|
||||||
uses: actions/checkout@v3
|
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
|
||||||
Reference in New Issue
Block a user