Skip to content

Create build.yml

Create build.yml #8

Workflow file for this run

name: Build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
global-json-file: global.json
- name: Restore Dependencies
run: dotnet restore
- name: Build
run: dotnet publish
- name: Rename App
shell: pwsh
run: |
$outputPath = & dotnet publish './src/ChatPrisma' --getProperty:PublishDir
cd $outputPath
ren "ChatPrisma.exe" "Chat Prisma.exe"
dir
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: App
path: ./artifacts/publish/ChatPrisma/release_win-x64/
if-no-files-found: error