Files
APT-Package/.gitea/workflows/build-debian-package.yml
Konstantin Hintermayer 7618ac8b97
Some checks failed
build-debian-package / Build the debian package (push) Failing after 3m9s
Add upload artifacts step
2026-01-15 00:19:45 +00:00

37 lines
1.5 KiB
YAML

name: build-debian-package
on:
- push
jobs:
build:
name: Build the debian package
runs-on: ubuntu-latest
steps:
- name: "Git clone"
run: git clone ${{ gitea.server_url }}/${{ gitea.repository }}.git .
- name: "Git checkout"
run: git checkout "${{ gitea.sha }}"
- name: "Dotnet SDK einrichten"
uses: actions/setup-dotnet@v4
with:
dotnet-version: "10.0.x"
- name: "Oqtane Framework auschecken"
run: git clone ${{ gitea.server_url }}/Diplomarbeit-Absolventenverein/oqtane.framework.git
- name: "Oqtane Framework restore"
run: dotnet restore ./oqtane.framework/Oqtane.slnx --verbosity detailed
- name: "Oqtane Framework bauen"
run: dotnet build -c Release ./oqtane.framework/Oqtane.slnx
- name: "Oqtane Framework publish"
run: dotnet publish -c Release ./oqtane.framework/Oqtane.slnx -o ./alumnihub_10.0_amd64/opt/alumnihub
- name: "Build .deb"
run: dpkg-deb --root-owner-group --build ./alumnihub_10.0_amd64
- name: "Upload .deb"
run: curl --user ${{ secrets.CI_RUNNER_USER }}:${{ secrets.CI_RUNNER_TOKEN }} --upload-file ./alumnihub_10.0_amd64.deb https://git.kocoder.xyz/api/packages/Diplomarbeit-Absolventenverein/debian/pool/trixie/main/upload
- uses: actions/upload-artifact@v4
with:
# A file, directory or wildcard pattern that describes what to upload
# Required.
path: .
retention-days: 5
overwrite: true
include-hidden-files: true