Update Builder.cs #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |