First iteration of the plugin template
Some checks failed
Nuget: publish / publish (push) Has been cancelled
Some checks failed
Nuget: publish / publish (push) Has been cancelled
This commit is contained in:
29
.gitea/workflows/publish.yml
Normal file
29
.gitea/workflows/publish.yml
Normal 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 }}
|
||||
Reference in New Issue
Block a user