Compare commits
16 Commits
908fc0df1b
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a04a36f785 | |||
| 3cc6eba28e | |||
| 831e9fd8eb | |||
| af03d37760 | |||
| 0738a230a3 | |||
| c1370b1f71 | |||
| 613b1e1843 | |||
| df9bf69405 | |||
| 38aedff5c2 | |||
| a798ee544e | |||
| aece91aff0 | |||
| b1786eb578 | |||
| 79d7058e66 | |||
| 81fc40cca9 | |||
| a8f46089c4 | |||
| 491838491a |
31
.gitea/workflows/release-nuget-package.yml
Normal file
31
.gitea/workflows/release-nuget-package.yml
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: release-nuget-package
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Release NuGet Package
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: "Git clone"
|
||||||
|
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
|
||||||
|
- name: "Git checkout"
|
||||||
|
run: git checkout "${{ gitea.sha }}"
|
||||||
|
- name: "Dotnet SDK einrichten"
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: "10.0.x"
|
||||||
|
- name: "Configure nuget source"
|
||||||
|
run: dotnet nuget add source --name DAV --username kocoder --password ${{ secrets.REGISTRY_TOKEN_KOCODER }} https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/nuget/index.json --store-password-in-clear-text
|
||||||
|
- name: "Build Interfaces Project"
|
||||||
|
run: dotnet build -c PublishNuget ./Interfaces/Interfaces.csproj
|
||||||
|
- name: "Release to Package Registry"
|
||||||
|
run: dotnet nuget push --source DAV --api-key ${{ secrets.REGISTRY_TOKEN_KOCODER }} ./Interfaces/Interfaces.*.nupkg
|
||||||
|
- name: "Create release"
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
./alumnihub.deb
|
||||||
|
./alumnihub/opt/alumnihub/Packages/*.nupkg
|
||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -2,4 +2,6 @@ bin/
|
|||||||
obj/
|
obj/
|
||||||
/packages/
|
/packages/
|
||||||
riderModule.iml
|
riderModule.iml
|
||||||
/_ReSharper.Caches/
|
/_ReSharper.Caches/
|
||||||
|
/.idea/
|
||||||
|
SZUAbsolventenverein.sln.DotSettings.user
|
||||||
@@ -17,4 +17,12 @@ public interface IReportUI
|
|||||||
/// The reportable Entity that is being reported.
|
/// The reportable Entity that is being reported.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
IReportable ReportableEntity { get; set; }
|
IReportable ReportableEntity { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Constructs a list of parameters to be passed to the component.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="reportableEntity">The entity to be reported.</param>
|
||||||
|
/// <param name="RenderModeBoundary">The render mode boundary.</param>
|
||||||
|
/// <returns>A dictionary of parameters. For </returns>
|
||||||
|
Dictionary<string, object> ConstructParameterList(IReportable reportableEntity, object RenderModeBoundary);
|
||||||
}
|
}
|
||||||
@@ -24,4 +24,9 @@ public interface IReportable
|
|||||||
/// The ID of an Entity that is beeing reported. This is used to determine the exact entity being reported.
|
/// The ID of an Entity that is beeing reported. This is used to determine the exact entity being reported.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int EntityID { get; }
|
public int EntityID { get; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The UserName of the user who published the Entity (and who should be held accountible for that Entity).
|
||||||
|
/// </summary>
|
||||||
|
public string UserName { get; }
|
||||||
}
|
}
|
||||||
@@ -9,7 +9,7 @@
|
|||||||
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
<Target Name="PostBuild" AfterTargets="PostBuildEvent">
|
||||||
<Exec Condition="'$(OS)' == 'Windows_NT' And '$(Configuration)' == 'Debug'" Command="debug.cmd $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
<Exec Condition="'$(OS)' == 'Windows_NT' And '$(Configuration)' == 'Debug'" Command="debug.cmd $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
||||||
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'Debug'" Command="bash $(ProjectDir)debug.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'Debug'" Command="bash $(ProjectDir)debug.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
||||||
<Exec Condition="'$(OS)' == 'Windows_NT' And '$(Configuration)' == 'Release'" Command="release.cmd $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
<Exec Condition="'$(OS)' == 'Windows_NT' And ('$(Configuration)' == 'Release' OR '$(Configuration)' == 'PublishNuget')" Command="release.cmd $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package','')) '$(Configuration)'" />
|
||||||
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'Release'" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
<Exec Condition="'$(OS)' != 'Windows_NT' And ('$(Configuration)' == 'Release' OR '$(Configuration)' == 'PublishNuget')" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package','')) '$(Configuration)'" />
|
||||||
</Target>
|
</Target>
|
||||||
</Project>
|
</Project>
|
||||||
|
|||||||
23
Interfaces/Interfaces.nuspec
Normal file
23
Interfaces/Interfaces.nuspec
Normal file
@@ -0,0 +1,23 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
|
<metadata>
|
||||||
|
<id>$projectname$</id>
|
||||||
|
<version>$version$</version>
|
||||||
|
<authors>SZUAbsolventenverein</authors>
|
||||||
|
<owners>SZUAbsolventenverein</owners>
|
||||||
|
<title>Interfaces</title>
|
||||||
|
<description>Interfaces</description>
|
||||||
|
<copyright>SZUAbsolventenverein</copyright>
|
||||||
|
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||||
|
<license type="expression">MIT</license>
|
||||||
|
<releaseNotes></releaseNotes>
|
||||||
|
<summary></summary>
|
||||||
|
<packageTypes>
|
||||||
|
<packageType name="Dependency" />
|
||||||
|
</packageTypes>
|
||||||
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="./bin\$Config$\$targetframework$\$ProjectName$.dll" target="lib\$targetframework$" />
|
||||||
|
<file src="./bin\$Config$\$targetframework$\$ProjectName$.pdb" target="lib\$targetframework$" />
|
||||||
|
</files>
|
||||||
|
</package>
|
||||||
6
Interfaces/debug.cmd
Normal file
6
Interfaces/debug.cmd
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
@echo off
|
||||||
|
set TargetFramework=%1
|
||||||
|
set ProjectName=%2
|
||||||
|
|
||||||
|
XCOPY "\bin\Debug\%TargetFramework%\%ProjectName%.dll" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y
|
||||||
|
XCOPY "\bin\Debug\%TargetFramework%\%ProjectName%.pdb" "..\..\oqtane.framework\Oqtane.Server\bin\Debug\%TargetFramework%\" /Y
|
||||||
7
Interfaces/debug.sh
Normal file
7
Interfaces/debug.sh
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
TargetFramework=$1
|
||||||
|
ProjectName=$2
|
||||||
|
|
||||||
|
cp -f "./bin/Debug/$TargetFramework/$ProjectName.dll" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/"
|
||||||
|
cp -f "./bin/Debug/$TargetFramework/$ProjectName.pdb" "../../oqtane.framework/Oqtane.Server/bin/Debug/$TargetFramework/"
|
||||||
7
Interfaces/release.cmd
Normal file
7
Interfaces/release.cmd
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
@echo off
|
||||||
|
set TargetFramework=%1
|
||||||
|
set ProjectName=%2
|
||||||
|
|
||||||
|
del "*.nupkg"
|
||||||
|
"..\..\oqtane.framework\oqtane.package\nuget.exe" pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName%
|
||||||
|
XCOPY "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\Packages\" /Y
|
||||||
16
Interfaces/release.sh
Normal file
16
Interfaces/release.sh
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
TargetFramework=$1
|
||||||
|
ProjectName=$2
|
||||||
|
Configuration=$3
|
||||||
|
|
||||||
|
echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration} RN: ${GITHUB_REF_NAME}"
|
||||||
|
|
||||||
|
find . -name *.nupkg -delete
|
||||||
|
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName};Config=${Configuration};version=${GITHUB_REF_NAME}"
|
||||||
|
|
||||||
|
if [ $Configuration == 'PublishNuget' ]; then
|
||||||
|
echo "Skipping copy to Oqtane.Server/Packages"
|
||||||
|
else
|
||||||
|
echo "Copy to Oqtane.Server/Packages"
|
||||||
|
cp -f *.nupkg ../../oqtane.framework/Oqtane.Server/Packages/
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user