1 Commits

Author SHA1 Message Date
65f0bfbb98 CI: Setup dotnet SDK before running automatic build
Some checks failed
/ build (push) Failing after 1m34s
2025-05-17 14:29:56 +02:00
2 changed files with 7 additions and 22 deletions

View File

@ -27,24 +27,11 @@ jobs:
uses: https://github.com/actions/setup-dotnet@v4 uses: https://github.com/actions/setup-dotnet@v4
with: with:
dotnet-version: '9.x' dotnet-version: '9.x'
# - name: Setup NuGet - name: LS
# uses: https://github.com/nuget/setup-nuget@v2 run: ls -lisa
# with:
# nuget-api-key: ${{ secrets.NuGetAPIKey }}
# nuget-version: '5.x'
- name: Build Oqtane - name: Build Oqtane
run: dotnet build ./oqtane.framework/Oqtane.sln --configuration Debug run: dotnet build ./oqtane.framework/Oqtane.sln --configuration Debug
- name: Build Module - name: Build Module
run: dotnet build ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release run: dotnet build ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release
- name: Test - name: Test
run: dotnet test ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release --no-build run: dotnet test ./Module.EventRegistration/SZUAbsolventenverein.Module.EventRegistration.sln --configuration Release --no-build
- name: Create Release
uses: akkuman/gitea-release-action@v1
env:
NODE_OPTIONS: '--experimental-fetch' # if nodejs < 18
with:
body: "Test-release"
draft: true
files: |-
./**/*.nupkg
./*.nupkg

View File

@ -1,9 +1,7 @@
TargetFramework=$1 TargetFramework=$1
ProjectName=$2 ProjectName=$2
# chmod +x ../../oqtane.framework/Oqtane.Package/nuget.exe ../../oqtane.framework/oqtane.package/nuget.exe pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName%
# "../../oqtane.framework/Oqtane.Package/nuget.exe" pack %ProjectName%.nuspec -Properties targetframework=%TargetFramework%;projectname=%ProjectName% ls # JUST FOR DEBUGGING
# https://learn.microsoft.com/en-us/nuget/reference/dotnet-commands pwd # JUST FOR DEBUGGING
dotnet pack SZUAbsolventenverein.Module.EventRegistration.Package.csproj --no-build cp -f "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\Packages\"
#cp -f "*.nupkg" "..\..\oqtane.framework\Oqtane.Server\Packages\"