Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
iMrShadow committed Mar 19, 2024
2 parents 363a3b1 + d07ffac commit 7ecfe4f
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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/

0 comments on commit 7ecfe4f

Please sign in to comment.