First iteration of the plugin template
Some checks failed
Nuget: publish / publish (push) Has been cancelled

This commit is contained in:
2026-02-20 22:54:01 +01:00
commit ed2b4aa5f4
36 changed files with 1382 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
name: "Nuget: publish"
on:
workflow_dispatch:
push:
paths:
- "Moonlight.PluginTemplate.csproj"
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
# Checkout code
- name: Checkout code
uses: actions/checkout@v4
# Build project
- name: Build project
run: dotnet build Moonlight.PluginTemplate --configuration Release
# Publish project
- name: Publish NuGet package
run: dotnet pack Moonlight.PluginTemplate --configuration Release --output ./artifacts
- name: Push nuget package
run: dotnet nuget push ./artifacts/*.nupkg --skip-duplicate --source https://git.battlestati.one/api/packages/Moonlight-Panel/nuget/index.json --api-key ${{ secrets.ACCESS_TOKEN }}