Skip to content

Commit

Permalink
ci: fix action
Browse files Browse the repository at this point in the history
  • Loading branch information
Icexbb committed Dec 7, 2024
1 parent 210677a commit 7cc7d75
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ on:

env:
DOTNET_VERSION: '8.0.x' # The .NET SDK version to use
BUILD_DIR: 'Build'
BUILD_DIR: 'build'
RESOURCE_DIR: 'resource'
PROJECT_NAME: 'SekaiToolsGUI'
SEVEN_ZIP_EXE: './resource/vapourSynth/7z.exe'

jobs:
build:
Expand All @@ -30,11 +31,17 @@ jobs:
- 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
- run: dotnet build ${{ env.PROJECT_NAME }} --configuration Release --no-restore -o ${{ env.BUILD_DIR }}
- run: cp -r ${{ env.RESOURCE_DIR }} ${{ env.BUILD_DIR }}

- run: zip -r ${{ env.BUILD_DIR }}.zip ${{ env.BUILD_DIR }}
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: ${{ env.BUILD_DIR }}.zip
name: SekaiTools.Nightly.7z
path: SekaiTools.Nightly.7z

0 comments on commit 7cc7d75

Please sign in to comment.