mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 15:39:46 +00:00
Basis .NET workflow
This commit is contained in:
parent
c5178eb7a7
commit
5ca9a7cff9
39
.github/workflows/build-and-release.yml
vendored
Normal file
39
.github/workflows/build-and-release.yml
vendored
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
name: Build and Release
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [edited]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build-dotnet:
|
||||||
|
runs-on: windows-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8'
|
||||||
|
dotnet-quality: 'ga'
|
||||||
|
cache: true
|
||||||
|
|
||||||
|
- name: Cache NuGet packages
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/.nuget/packages
|
||||||
|
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-nuget-
|
||||||
|
|
||||||
|
- name: Build .NET project
|
||||||
|
run: |
|
||||||
|
cd "app/MindWork AI Studio"
|
||||||
|
dotnet publish --configuration release --runtime win-arm64 --disable-build-servers --force --output ../../publish/dotnet
|
||||||
|
|
||||||
|
- name: Upload .NET artifacts
|
||||||
|
uses: actions/upload-artifact@v4
|
||||||
|
with:
|
||||||
|
name: dotnet
|
||||||
|
path: /publish/dotnet
|
||||||
|
if-no-files-found: error
|
||||||
|
retention-days: 1
|
Loading…
Reference in New Issue
Block a user