Skip to content

Merge pull request #26 from Persivan/pipeline #5

Merge pull request #26 from Persivan/pipeline

Merge pull request #26 from Persivan/pipeline #5

name: Build .NET 8 Console App
on:
push:
branches:
- main
- pipeline
jobs:
build:
name: Build and Upload Artifact
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: '8.0.x' # Specify the .NET version
- name: Restore Dependencies
run: dotnet restore ./USM_Builder/USM_builder/USM_builder.csproj
- name: Build
run: dotnet build ./USM_Builder/USM_builder/USM_builder.csproj --configuration Release
- name: Publish
run: dotnet publish ./USM_Builder/USM_builder/USM_builder.csproj --configuration Release --output ./publish --runtime win-x64 --self-contained
- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: console-app-build
path: ./publish