Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| aece91aff0 | |||
| b1786eb578 | |||
| 79d7058e66 | |||
| 81fc40cca9 |
@@ -17,8 +17,8 @@ jobs:
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: "10.0.x"
|
||||
- name: "Get configured dotnet sources"
|
||||
run: dotnet nuget list sources
|
||||
- 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"
|
||||
|
||||
@@ -9,8 +9,7 @@
|
||||
<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="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'" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package',''))" />
|
||||
<Exec Condition="'$(OS)' != 'Windows_NT' And '$(Configuration)' == 'PublishNuget'" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package','')) skip-copy-to-oqtane.framework" />
|
||||
<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' OR '$(Configuration)' == 'PublishNuget')" Command="bash $(ProjectDir)release.sh $(TargetFramework) $([System.String]::Copy('$(MSBuildProjectName)').Replace('.Package','')) '$(Configuration)'" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
</packageTypes>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="./bin\Release\$targetframework$\$ProjectName$.dll" target="lib\$targetframework$" />
|
||||
<file src="./bin\Release\$targetframework$\$ProjectName$.pdb" target="lib\$targetframework$" />
|
||||
<file src="./bin\$configuration$\$targetframework$\$ProjectName$.dll" target="lib\$targetframework$" />
|
||||
<file src="./bin\$configuration$\$targetframework$\$ProjectName$.pdb" target="lib\$targetframework$" />
|
||||
</files>
|
||||
</package>
|
||||
@@ -1,12 +1,17 @@
|
||||
#!/bin/bash
|
||||
TargetFramework=$1
|
||||
ProjectName=$2
|
||||
Configuration=$3
|
||||
|
||||
echo "ENV: ${TargetFramework} ${ProjectName} ${Configuration}"
|
||||
|
||||
|
||||
find . -name *.nupkg -delete
|
||||
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName}"
|
||||
dotnet pack $ProjectName.nuspec "/p:targetframework=${TargetFramework};ProjectName=${ProjectName};configuration=${Configuration}"
|
||||
|
||||
if [ "$#" -ne 3 ]; then
|
||||
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