Skip to content

Commit 8cb5276

Browse files
committed
Cleaned up workflow. Fixed old search & replace issue. Increased version
1 parent 1ac96ac commit 8cb5276

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/publish-dev-packages.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,28 @@ on:
66
workflow_dispatch:
77

88
jobs:
9-
build-nupkg:
9+
publish:
1010
runs-on: debian-12
1111

1212
steps:
13+
# Step 1: Clean environment
1314
- name: Clean up Environment
1415
run: |
15-
rm -rf ./*
16-
rm -rf ./.??*
16+
rm -rf ./*
17+
rm -rf ./.??*
1718
18-
- uses: actions/checkout@v3
19+
# Step 2: Checkout the code
20+
- name: Checkout code
21+
uses: actions/checkout@v3
1922

20-
- name: Pack the plugin template
21-
run: dotnet pack -c Debug -o ./packs
23+
# Step 3: Build project
24+
- name: "Build project"
25+
run: dotnet build --configuration Debug PluginTemplate.csproj
2226

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
27+
# Step 4: Pack project
28+
- name: "Pack project"
29+
run: dotnet pack --configuration Debug --no-build --output . PluginTemplate.csproj
30+
31+
# Step 5: Publish on package registry
32+
- name: Publish on package registry"
33+
run: dotnet nuget push "*.nupkg" --skip-duplicate --api-key ${{secrets.GH_PACKAGES_READWRITE}} --source https://nuget.pkg.github.com/Moonlight-Panel/index.json

PluginTemplate.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<PackageId>Moonlight.PluginTemplate</PackageId>
5-
<PackageVersion>1.0.5</PackageVersion>
5+
<PackageVersion>1.0.6</PackageVersion>
66
<Title>Moonlight.PluginTemplate</Title>
77
<Authors>ChiaraBm</Authors>
88
<Description>A template for creating moonlight plugins faster</Description>

content/MoonlightPluginTemplate/.template.config/template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "http://json.schemastore.org/template",
3-
"author": "Chiara Baumgartner",
3+
"author": "ChiaraBm",
44
"classifications": [
55
"Web",
66
"Blazor",

0 commit comments

Comments
 (0)