Skip to content

ci: fix action

ci: fix action #6

Workflow file for this run

name: .net build
on:
push:
pull_request:
branches: [ main ]
paths-ignore:
- 'README.md'
- 'Test'
workflow_dispatch:
env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
BUILD_DIR: 'build'
RESOURCE_DIR: 'resource'
PROJECT_NAME: 'SekaiToolsGUI'
SEVEN_ZIP_EXE: './resource/vapourSynth/7z.exe'
jobs:
build:
name: build-${{matrix.os}}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ windows-latest ]
# Each job run contains these five steps
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- run: |
dotnet restore ${{ env.PROJECT_NAME }}
dotnet build ${{ env.PROJECT_NAME }} --configuration Release --no-restore -o ${{ env.BUILD_DIR }}
- run: |
cp -r ${{ env.RESOURCE_DIR }} ${{ env.BUILD_DIR }}
rm -r ${{ env.BUILD_DIR }}/runtimes/win-x86
rm -r ${{ env.BUILD_DIR }}/runtimes/win-arm64
rm -r ${{ env.BUILD_DIR }}/*.pdb
${{ env.SEVEN_ZIP_EXE }} a SekaiTools.Nightly.7z ${{ env.BUILD_DIR }} -y -r -mx=9
- uses: actions/upload-artifact@v4
with:
name: SekaiTools.Nightly.7z
path: SekaiTools.Nightly.7z