Files
Slim/.github/workflows/cd.yaml
T
2025-07-29 17:53:42 +02:00

50 lines
1.2 KiB
YAML

name: Slim CD Pipeline
on:
push:
branches:
- master
jobs:
build:
environment: Default
strategy:
matrix:
targetplatform: [x64]
runs-on: windows-latest
env:
Configuration: Release
Solution_Path: Slim.sln
Test_Project_Path: Slim.Tests\Slim.Tests.csproj
Source_Project_Path: Slim\Slim.csproj
Integration_Project_Path: Slim.Integration\Slim.Integration.csproj
Actions_Allow_Unsecure_Commands: true
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: '9.x'
- name: Build Slim project
run: dotnet build Slim -c $env:Configuration
- name: Build Slim.Integration project
run: dotnet build $env:Integration_Project_Path -c $env:Configuration
- name: Package Slim
run: dotnet pack -c Release -o . $env:Source_Project_Path
- name: Package Slim.Integration
run: dotnet pack -c Release -o . $env:Integration_Project_Path
- name: Publish
run: dotnet nuget push *.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate