Skip to content

Commit f7bbf50

Browse files
committed
Added publish workflow. Removed old usage of plugin.json. Added gitignore to template
1 parent 92fd9b3 commit f7bbf50

File tree

5 files changed

+429
-18
lines changed

5 files changed

+429
-18
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Build and Publish NuGet Package
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
workflow_dispatch:
7+
8+
jobs:
9+
build-scrips:
10+
runs-on: debian-12
11+
12+
steps:
13+
- name: Clean up Environment
14+
run: |
15+
rm -rf ./*
16+
rm -rf ./.??*
17+
18+
- uses: actions/checkout@v3
19+
20+
- name: Pack the plugin template
21+
run: dotnet pack -c Debug -o ./packs
22+
23+
- name: Publish to github Pkg
24+
run: dotnet nuget push "./packs/*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json

0 commit comments

Comments
 (0)