Compare commits
No commits in common. "05051878f250fe50d24d1bcf4d00c0c93f38a5c2" and "eda7992c23d3b34e9ed36e2086824e45cee85bb4" have entirely different histories.
05051878f2
...
eda7992c23
@ -1,9 +1,9 @@
|
|||||||
name: Build and publish MycroForge.CLI
|
name: Build and publish MycroForge.CLI
|
||||||
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.CLI package
|
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.CLI
|
||||||
on: [ workflow_dispatch ]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: gitea.ref == 'refs/heads/main'
|
if: gitea.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
@ -14,8 +14,7 @@ jobs:
|
|||||||
- name: "Build and publish NuGet package"
|
- name: "Build and publish NuGet package"
|
||||||
run: |
|
run: |
|
||||||
# Build the NuGet package
|
# Build the NuGet package
|
||||||
cd MycroForge.CLI
|
cd MycroForge.CLI && dotnet pack -v m
|
||||||
dotnet pack -v m
|
|
||||||
|
|
||||||
# Add the NuGet source
|
# Add the NuGet source
|
||||||
dotnet nuget add source --name devdisciples \
|
dotnet nuget add source --name devdisciples \
|
@ -1,33 +0,0 @@
|
|||||||
name: Build and publish MycroForge.Core
|
|
||||||
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.Core package
|
|
||||||
on: [ workflow_dispatch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
steps:
|
|
||||||
- uses: https://github.com/actions/checkout@v4
|
|
||||||
- uses: https://github.com/actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.x'
|
|
||||||
- name: "Build and publish NuGet package"
|
|
||||||
run: |
|
|
||||||
# Build the NuGet package
|
|
||||||
cd MycroForge.Core
|
|
||||||
dotnet publish
|
|
||||||
dotnet pack -v m
|
|
||||||
|
|
||||||
# Add the NuGet source
|
|
||||||
dotnet nuget add source --name devdisciples \
|
|
||||||
--username ${{ secrets.NUGET_USER }} \
|
|
||||||
--password ${{ secrets.NUGET_PASS }} \
|
|
||||||
--store-password-in-clear-text \
|
|
||||||
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
|
||||||
|
|
||||||
# Set the path to the package
|
|
||||||
VERSION=$(grep '<Version>' < MycroForge.Core.csproj | sed 's/.*<Version>\(.*\)<\/Version>/\1/' | xargs)
|
|
||||||
PACKAGE="bin/Release/MycroForge.Core.$VERSION.nupkg"
|
|
||||||
|
|
||||||
# Push the package
|
|
||||||
dotnet nuget push "$PACKAGE" --source devdisciples
|
|
@ -1,33 +0,0 @@
|
|||||||
name: Build and publish MycroForge.PluginTemplate package
|
|
||||||
run-name: ${{ gitea.actor }} triggered a build for the MycroForge.PluginTemplate package
|
|
||||||
on: [ workflow_dispatch ]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
steps:
|
|
||||||
- uses: https://github.com/actions/checkout@v4
|
|
||||||
- uses: https://github.com/actions/setup-dotnet@v4
|
|
||||||
with:
|
|
||||||
dotnet-version: '8.x'
|
|
||||||
- name: "Build and publish NuGet package"
|
|
||||||
run: |
|
|
||||||
# Build the NuGet package
|
|
||||||
cd MycroForge.PluginTemplate.Package
|
|
||||||
dotnet publish
|
|
||||||
dotnet pack -v m
|
|
||||||
|
|
||||||
# Add the NuGet source
|
|
||||||
dotnet nuget add source --name devdisciples \
|
|
||||||
--username ${{ secrets.NUGET_USER }} \
|
|
||||||
--password ${{ secrets.NUGET_PASS }} \
|
|
||||||
--store-password-in-clear-text \
|
|
||||||
https://git.devdisciples.com/api/packages/devdisciples/nuget/index.json
|
|
||||||
|
|
||||||
# Set the path to the package
|
|
||||||
VERSION=$(grep '<PackageVersion>' < MycroForge.Core.csproj | sed 's/.*<PackageVersion>\(.*\)<\/PackageVersion>/\1/' | xargs)
|
|
||||||
PACKAGE="bin/Release/MycroForge.PluginTemplate.Package.$VERSION.nupkg"
|
|
||||||
|
|
||||||
# Push the package
|
|
||||||
dotnet nuget push "$PACKAGE" --source devdisciples
|
|
@ -6,7 +6,7 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<PackageId>MycroForge.Core</PackageId>
|
<PackageId>MycroForge.Core</PackageId>
|
||||||
<Description>The MycroForge core package</Description>
|
<Description>The MycroForge core package</Description>
|
||||||
<Version>0.0.1</Version>
|
<Version>1.0.0</Version>
|
||||||
<Authors>Donné Napo</Authors>
|
<Authors>Donné Napo</Authors>
|
||||||
<Company>Dev Disciples</Company>
|
<Company>Dev Disciples</Company>
|
||||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<!-- The package metadata. Fill in the properties marked as TODO below -->
|
<!-- The package metadata. Fill in the properties marked as TODO below -->
|
||||||
<!-- Follow the instructions on https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices -->
|
<!-- Follow the instructions on https://learn.microsoft.com/nuget/create-packages/package-authoring-best-practices -->
|
||||||
<PackageId>MycroForge.PluginTemplate.Package</PackageId>
|
<PackageId>MycroForge.PluginTemplate.Package</PackageId>
|
||||||
<PackageVersion>0.0.1</PackageVersion>
|
<PackageVersion>1.0</PackageVersion>
|
||||||
<Title>A template for generating MycroForge plugins</Title>
|
<Title>A template for generating MycroForge plugins</Title>
|
||||||
<Authors>Donné Napo</Authors>
|
<Authors>Donné Napo</Authors>
|
||||||
<Description>Template to use when creating a plugin for the MycroForge CLI.</Description>
|
<Description>Template to use when creating a plugin for the MycroForge CLI.</Description>
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="MycroForge.Core" Version="0.0.1" />
|
<PackageReference Include="MycroForge.Core" Version="1.0.0" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
Reference in New Issue
Block a user