Compare commits
8 Commits
3f034c6964
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 412b795247 | |||
| a768ac5a14 | |||
| a62819232e | |||
| 3f451b731c | |||
| 5dff6d2bad | |||
| 320d02f734 | |||
| 9de928f114 | |||
| d3a914e020 |
@@ -2,7 +2,7 @@ name: build-debian-package
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -19,8 +19,10 @@ jobs:
|
||||
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 .deb"
|
||||
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub"
|
||||
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub" "Release"
|
||||
- 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
|
||||
- name: "Create release"
|
||||
@@ -28,4 +30,4 @@ jobs:
|
||||
with:
|
||||
files: |-
|
||||
./alumnihub.deb
|
||||
./alumnihub/opt/alumnihub/Packages/*.nupkg
|
||||
./alumnihub/opt/alumnihub/Packages/*.nupkg
|
||||
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.idea/
|
||||
Submodule Module.AdminModules updated: a94527f294...f1bc1b53a5
Submodule Module.BlackBoard updated: 0b82942569...325a06e6b0
Submodule Module.EventRegistration updated: 0a3890e411...fefd9c53a5
Submodule Module.HallOfFame updated: 7d11271d7c...749a4eb5fa
Submodule Module.PremiumArea updated: 4a1d334a5c...206b974ab3
Submodule Theme.SZUAbsolventenverein updated: 637a7635cd...3e36c2ae62
Submodule interfaces updated: 5c806421e0...a04a36f785
Submodule oqtane.framework updated: 6db5c924c7...9833d37ebe
20
run-build.sh
20
run-build.sh
@@ -1,16 +1,27 @@
|
||||
#!/bin/bash
|
||||
VERSION="$1"
|
||||
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"
|
||||
|
||||
dotnet restore ./oqtane.framework/Oqtane.slnx
|
||||
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
|
||||
dotnet build -c Release ./oqtane.framework/Oqtane.slnx --no-restore
|
||||
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj -o ./alumnihub/opt/alumnihub --no-restore
|
||||
dotnet build -c "$ENVIRONMENT" ./oqtane.framework/Oqtane.slnx --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
|
||||
|
||||
dotnet restore ./interfaces/SZUAbsolventenverein.slnx
|
||||
dotnet build -c "$ENVIRONMENT" ./interfaces/SZUAbsolventenverein.slnx --no-restore
|
||||
|
||||
echo ""
|
||||
echo "Building Modules and Themes"
|
||||
|
||||
@@ -18,15 +29,14 @@ for module in $(ls . | grep -E 'Module|Theme')
|
||||
do
|
||||
echo "######## Building $module"
|
||||
dotnet restore ./$module/*.slnx
|
||||
dotnet build -c Release ./$module/*.slnx --no-restore
|
||||
dotnet publish -c Release ./$module/*.slnx --no-restore
|
||||
dotnet build -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
|
||||
dotnet publish -c "$ENVIRONMENT" ./$module/*.slnx --no-restore
|
||||
done
|
||||
|
||||
cp -r ./oqtane.framework/Oqtane.Server/Packages ./alumnihub/opt/alumnihub/Packages
|
||||
|
||||
rm ./alumnihub/opt/alumnihub/appsettings.json
|
||||
|
||||
echo $VERSION $DEBIAN_PACKAGE_PATH
|
||||
|
||||
echo "Version: ${VERSION}" >> $DEBIAN_PACKAGE_PATH/DEBIAN/control
|
||||
|
||||
|
||||
Reference in New Issue
Block a user