Compare commits
7 Commits
3a9c499aab
...
e8739defad
Author | SHA1 | Date | |
---|---|---|---|
|
e8739defad | ||
|
e4690dfe22 | ||
|
525d82ca27 | ||
|
ac664f16ce | ||
|
c3f58eb172 | ||
|
ce4139d100 | ||
|
582fe194b9 |
50
.gitea/workflows/BuildLibrary.yml
Normal file
50
.gitea/workflows/BuildLibrary.yml
Normal 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 }}
|
Reference in New Issue
Block a user