Compare commits

..

8 Commits

Author SHA1 Message Date
49c3b8f847 Update: Theme, AdminModules and Blackboard
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m13s
2026-04-11 21:31:08 +02:00
a768ac5a14 Fix: Theme
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m58s
2026-02-25 12:41:18 +01:00
a62819232e Configure nuget source in pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m37s
2026-02-24 12:51:56 +01:00
3f451b731c Fix: pipeline
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m47s
2026-02-24 12:46:40 +01:00
5dff6d2bad Fix: run-build.sh
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m31s
2026-02-24 11:51:38 +01:00
320d02f734 Update: 24.02.2025
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m57s
2026-02-24 11:46:09 +01:00
9de928f114 New: .gitignore
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m15s
2026-02-13 18:22:15 +01:00
d3a914e020 New: run-build.sh now also for Development Environments 2026-02-13 18:22:06 +01:00
10 changed files with 28 additions and 15 deletions

View File

@@ -2,7 +2,7 @@ name: build-debian-package
on: on:
push: push:
tags: tags:
- '*' - "*"
jobs: jobs:
build: build:
@@ -19,8 +19,10 @@ jobs:
uses: actions/setup-dotnet@v4 uses: actions/setup-dotnet@v4
with: with:
dotnet-version: "10.0.x" 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 .deb" - name: "Build .deb"
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub" run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub" "Release"
- name: "Upload .deb" - name: "Upload .deb"
run: curl --user kocoder:${{ secrets.REGISTRY_TOKEN_KOCODER }} --upload-file ./alumnihub.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload run: curl --user kocoder:${{ secrets.REGISTRY_TOKEN_KOCODER }} --upload-file ./alumnihub.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload
- name: "Create release" - name: "Create release"
@@ -28,4 +30,4 @@ jobs:
with: with:
files: |- files: |-
./alumnihub.deb ./alumnihub.deb
./alumnihub/opt/alumnihub/Packages/*.nupkg ./alumnihub/opt/alumnihub/Packages/*.nupkg

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.idea/

View File

@@ -1,16 +1,27 @@
#!/bin/bash #!/bin/bash
VERSION="$1" VERSION="$1"
DEBIAN_PACKAGE_PATH="$2" DEBIAN_PACKAGE_PATH="$2"
ENVIRONMENT="$3"
if [ "$#" -ne 3 ]; then
echo "Error: You must provide exactly three arguments."
exit 1
fi
echo "$VERSION" "$DEBIAN_PACKAGE_PATH" "$ENVIRONMENT"
echo "Building oqtane.framework" echo "Building oqtane.framework"
dotnet restore ./oqtane.framework/Oqtane.slnx dotnet restore ./oqtane.framework/Oqtane.slnx
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
dotnet build -c Release ./oqtane.framework/Oqtane.slnx --no-restore dotnet build -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.slnx --no-restore
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore dotnet publish -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
mkdir -p ./oqtane.framework/Oqtane.Server/Packages mkdir -p ./oqtane.framework/Oqtane.Server/Packages
dotnet restore ./interfaces/SZUAbsolventenverein.slnx
dotnet build -c "$ENVIRONMENT" ./interfaces/SZUAbsolventenverein.slnx --no-restore
echo "" echo ""
echo "Building Modules and Themes" echo "Building Modules and Themes"
@@ -18,15 +29,14 @@ for module in $(ls . | grep -E 'Module|Theme')
do do
echo "######## Building $module" echo "######## Building $module"
dotnet restore ./$module/*.slnx dotnet restore ./$module/*.slnx
dotnet build -c Release ./$module/*.slnx --no-restore dotnet build -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
dotnet publish -c Release ./$module/*.slnx --no-restore dotnet publish -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
done done
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
rm ./alumnihub/opt/alumnihub/appsettings.json rm ./alumnihub/opt/alumnihub/appsettings.json
echo $VERSION $DEBIAN_PACKAGE_PATH
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control