Compare commits

...

2 Commits

Author SHA1 Message Date
36e9f9ee39 Try 2: Fix postinst script (appsettings.json)
All checks were successful
build-debian-package / Build the debian package (push) Successful in 5m19s
2026-01-30 13:38:42 +01:00
346fd6b33c Fix: build scripts
All checks were successful
build-debian-package / Build the debian package (push) Successful in 4m59s
2026-01-30 13:26:54 +01:00
2 changed files with 5 additions and 5 deletions

View File

@@ -20,12 +20,12 @@ jobs:
with:
dotnet-version: "10.0.x"
- 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"
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_10.0_amd64.deb
./alumnihub_10.0_amd64/opt/alumnihub/Packages/*.nupkg
./alumnihub.deb
./alumnihub/opt/alumnihub/Packages/*.nupkg

View File

@@ -3,6 +3,6 @@ adduser --system alumnihub
chown -R alumnihub:root /opt/alumnihub
if [ -e /opt/alumnihub/appsettings.json ]; then
if [ ! -e /opt/alumnihub/appsettings.json ]; then
cp /opt/alumnihub/appsettings.release.json /opt/alumnihub/appsettings.json
fi