-
Notifications
You must be signed in to change notification settings - Fork 150
38 lines (31 loc) · 934 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: "SukiUI Continuous Integration"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
Project_Path: SukiUI/SukiUI.csproj
Dll_Path: publish/SukiUI.dll
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 9.0.x
- name: Restore
run: dotnet restore ${{ env.Project_Path }}
- name: Build
run: dotnet build ${{ env.Project_Path }} -c Release --no-restore
- name: Publish
run: dotnet publish ${{ env.Project_Path }} -c Release -o "publish/" -p:AssemblyVersion=1.0.0.0
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: SukiUI-dev
path: ${{ env.Dll_Path }}