forked from Telltale-Modding-Group/Telltale-Texture-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (35 loc) · 1.28 KB
/
dotnet.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
39
40
41
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
name: .NET
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
GUI_PROJECT_PATH : 'DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/DDS_D3DTX_Converter.csproj'
OUTPUT_PROJECT_PATH : 'Builds'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore ${{env.GUI_PROJECT_PATH}}
- name: Build
run: dotnet build ${{env.GUI_PROJECT_PATH}} --configuration Release --no-restore
- name: Test
run: dotnet test ${{env.GUI_PROJECT_PATH}} --no-build --verbosity normal
- name: Publish
run: dotnet publish ${{env.GUI_PROJECT_PATH}} --configuration Release --no-build
- name: Zip
run: zip -r DDS_D3DTX_Converter.zip ./DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/bin/Release/net8.0/publish/
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: DDS_D3DTX_Converter
path: ./DDS_D3DTX_Converter_GUI/DDS_D3DTX_Converter/bin/Release/net8.0/publish/