Compare commits

..

7 Commits

Author SHA1 Message Date
max
e8739defad Merge branch 'main' into feature/base_authority 2025-08-02 16:41:45 +02:00
max
e4690dfe22 [WORKFLOW] Updated gitea instance url & added packing for logging libs
All checks were successful
Build C# Library / build (push) Successful in 1m17s
2025-08-02 16:10:48 +02:00
max
525d82ca27 [CHANGE] Workflow change path
Some checks failed
Build C# Library / build (push) Failing after 1m7s
2025-08-02 16:05:36 +02:00
max
ac664f16ce [CHANGE] Corrected project to pack
Some checks failed
Build C# Library / build (push) Failing after 57s
2025-08-02 16:03:31 +02:00
max
c3f58eb172 [ADD] Workflow pack to nuget package and publish to Gitea packages
Some checks failed
Build C# Library / build (push) Failing after 57s
2025-08-02 16:00:16 +02:00
max
ce4139d100 [CHANGE] Updated workflow dotnet version -> 8.0.x
All checks were successful
Build C# Library / build (push) Successful in 1m2s
2025-08-02 15:47:14 +02:00
max
582fe194b9 [ADD] Workflow: build on main push
Some checks failed
Build C# Library / build (push) Failing after 1m4s
2025-08-02 15:00:20 +02:00

View File

@@ -0,0 +1,50 @@
name: Build C# Library
run-name: Build Library project
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build library
run: dotnet build --configuration Release
- name: Pack DotBased
run: dotnet pack ./DotBased/DotBased.csproj --configuration Release -o ./artifacts
- name: Pack DotBased.Logging.MEL
run: dotnet pack ./DotBased.Logging.MEL/DotBased.Logging.MEL.csproj --configuration Release -o ./artifacts
- name: Pack DotBased.Logging.Serilog
run: dotnet pack ./DotBased.Logging.Serilog/DotBased.Logging.Serilog.csproj --configuration Release -o ./artifacts
- name: Publish library to Gitea NuGet
run: |
dotnet nuget add source \
--username $GITEA_USER \
--password $GITEA_TOKEN \
--store-password-in-clear-text \
--name gitea \
https://git.netzbyte.com/api/packages/$GITEA_USER/nuget/index.json
dotnet nuget push ./artifacts/*.nupkg --source gitea --skip-duplicate
env:
GITEA_USER: max
GITEA_TOKEN: ${{ secrets.PACKAGES_TOKEN }}