Compare commits
17 Commits
0.0.1-oqta
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 36e9f9ee39 | |||
| 346fd6b33c | |||
| fee56ed714 | |||
| 7c0e5f7e03 | |||
| 18f396f51b | |||
| 96ed3d0679 | |||
| b6e9476bda | |||
| 6c2a122796 | |||
| 63d2e92f8b | |||
| dd68c66b87 | |||
| 568bbb5b5e | |||
| 14cc769418 | |||
| 76feb7615d | |||
| c3d521e5a0 | |||
| b7b950d4ac | |||
| 4fd49d0ea0 | |||
| 458514e04b |
@@ -4,7 +4,6 @@ on:
|
|||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build the debian package
|
name: Build the debian package
|
||||||
@@ -21,6 +20,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
dotnet-version: "10.0.x"
|
dotnet-version: "10.0.x"
|
||||||
- name: "Build .deb"
|
- name: "Build .deb"
|
||||||
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub_10.0_amd64"
|
run: ./run-build.sh "${{ gitea.ref_name }}" "./alumnihub"
|
||||||
- name: "Upload .deb"
|
- name: "Upload .deb"
|
||||||
run: curl --user kocoder:${{ secrets.REGISTRY_TOKEN_KOCODER }} --upload-file ./alumnihub_10.0_amd64.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"
|
||||||
|
uses: akkuman/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
./alumnihub.deb
|
||||||
|
./alumnihub/opt/alumnihub/Packages/*.nupkg
|
||||||
7
.gitmodules
vendored
7
.gitmodules
vendored
@@ -1,5 +1,5 @@
|
|||||||
[submodule "alumnihub_10.0_amd64/opt/alumnihub-helpers"]
|
[submodule "alumnihub/opt/alumnihub-helpers"]
|
||||||
path = alumnihub_10.0_amd64/opt/alumnihub-helpers
|
path = alumnihub/opt/alumnihub-helpers
|
||||||
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
|
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Customer.git
|
||||||
[submodule "oqtane.framework"]
|
[submodule "oqtane.framework"]
|
||||||
path = oqtane.framework
|
path = oqtane.framework
|
||||||
@@ -19,3 +19,6 @@
|
|||||||
[submodule "Module.PremiumArea"]
|
[submodule "Module.PremiumArea"]
|
||||||
path = Module.PremiumArea
|
path = Module.PremiumArea
|
||||||
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.PremiumArea.git
|
url = https://git.kocoder.xyz/Diplomarbeit-Absolventenverein/Module.PremiumArea.git
|
||||||
|
[submodule "fixProps"]
|
||||||
|
path = fixProps
|
||||||
|
url = https://github.com/oqtane/oqtane.FixProps
|
||||||
|
|||||||
Submodule Module.AdminModules updated: 002b3cafff...a94527f294
Submodule Module.EventRegistration updated: 9b1ea5ada1...0a3890e411
Submodule Module.HallOfFame updated: 2d8c6736a7...7d11271d7c
Submodule Module.PremiumArea updated: 0942f0b308...4a1d334a5c
Submodule Theme.SZUAbsolventenverein updated: 5b52989230...637a7635cd
8
alumnihub/DEBIAN/postinst
Executable file
8
alumnihub/DEBIAN/postinst
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
adduser --system alumnihub
|
||||||
|
|
||||||
|
chown -R alumnihub:root /opt/alumnihub
|
||||||
|
|
||||||
|
if [ ! -e /opt/alumnihub/appsettings.json ]; then
|
||||||
|
cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json
|
||||||
|
fi
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
adduser --system alumnihub
|
|
||||||
Submodule alumnihub_10.0_amd64/opt/alumnihub-helpers deleted from 957e587593
1
fixProps
Submodule
1
fixProps
Submodule
Submodule fixProps added at 10f645be52
21
run-build.sh
21
run-build.sh
@@ -2,18 +2,29 @@
|
|||||||
VERSION="$1"
|
VERSION="$1"
|
||||||
DEBIAN_PACKAGE_PATH="$2"
|
DEBIAN_PACKAGE_PATH="$2"
|
||||||
|
|
||||||
|
echo "Building oqtane.framework"
|
||||||
|
|
||||||
dotnet restore ./oqtane.framework/Oqtane.slnx
|
dotnet restore ./oqtane.framework/Oqtane.slnx
|
||||||
dotnet build -c Release ./oqtane.framework/Oqtane.slnx
|
dotnet build ./oqtane.framework/Oqtane.slnx --no-restore
|
||||||
dotnet publish -c Release ./oqtane.framework/Oqtane.Server/Oqtane.Server.csproj
|
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
|
||||||
|
|
||||||
|
mkdir -p ./oqtane.framework/Oqtane.Server/Packages
|
||||||
|
|
||||||
|
echo ""
|
||||||
|
echo "Building Modules and Themes"
|
||||||
|
|
||||||
for module in $(ls . | grep -E 'Module|Theme')
|
for module in $(ls . | grep -E 'Module|Theme')
|
||||||
do
|
do
|
||||||
dotnet restore ./$module/*.slnx
|
echo "######## Building $module"
|
||||||
dotnet build -c Release ./$module/*.slnx
|
dotnet restore ./$module/*.slnx
|
||||||
dotnet publish -c Release ./$module/*.slnx
|
dotnet build -c Release ./$module/*.slnx --no-restore
|
||||||
|
dotnet publish -c Release ./$module/*.slnx --no-restore
|
||||||
done
|
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 $DEBIAN_PACKAGE_PATH
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user