Skip to content

Commit

Permalink
Create build
Browse files Browse the repository at this point in the history
  • Loading branch information
Persivan authored Jul 30, 2024
1 parent ff5d98f commit 2988d5a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build .NET 8 Console App

on:
push:
branches:
- 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 --no-self-contained

- name: Upload Build Artifact
uses: actions/upload-artifact@v3
with:
name: console-app-build
path: ./publish

0 comments on commit 2988d5a

Please sign in to comment.