From 7707c335759fd82358106a496b34a6b5b29d8863 Mon Sep 17 00:00:00 2001 From: Konstantin Hintermayer Date: Wed, 14 May 2025 21:56:48 +0200 Subject: [PATCH] CI: Setup dotnet SDK before running automatic build --- .gitea/workflows/ci.yml | 17 +++++++++++++++++ .gitea/workflows/release.yml | 2 ++ 2 files changed, 19 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index d950e2b..c89476e 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,6 +15,23 @@ jobs: steps: - name: Checkout uses: https://github.com/actions/checkout@v4 + with: + path: main + - name: Checkout + uses: https://github.com/actions/checkout@v4 + with: + repository: Diplomarbeit-Absolventenverein/oqtane.framework + path: oqtane.framework + - name: PWD + run: pwd + - name: LS + run: ls -lisa + - name: change into building directory + run: cd Module.EventRegistration + - name: Setup Dotnet SDK + uses: https://github.com/actions/setup-dotnet@v4 + with: + dotnet-version: '9.x' - name: Build run: dotnet build --configuration Release - name: Test diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 065b80e..95bfc12 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -19,6 +19,8 @@ jobs: git branch --remote --contains | grep origin/main - name: Set VERSION variable from tag run: echo "VERSION=${GITEA_REF/refs\/tags\/v/}" >> $GITEA_ENV + - name: Setup Dotnet SDK + uses: https://github.com/actions/setup-dotnet@v4 - name: Build run: dotnet build --configuration Release /p:Version=${VERSION} - name: Test