only upload necessary files in windows github workflow

This commit is contained in:
Syping 2025-11-18 00:33:00 +01:00
parent d67070aa33
commit 616ef9d555

View file

@ -14,12 +14,15 @@ jobs:
- name: Restore dependencies - name: Restore dependencies
run: dotnet restore run: dotnet restore
- name: Build ragephoto-cli - name: Build ragephoto-cli
run: dotnet publish -c Release -f net8.0 -p:PublishAot=true -r win-x64 run: dotnet publish ragephoto-cli.csproj -c Release -p:PublishAot=true -r win-x64 -o ${{github.workspace}}\.build
- name: Upload - name: Upload
uses: actions/upload-artifact@v5 uses: actions/upload-artifact@v5
with: with:
name: Windows Build name: Windows Build
path: ${{github.workspace}}/bin/Release/net8.0/win-x64/publish/ if-no-files-found: error
path: |
${{github.workspace}}\.build\libragephoto.dll
${{github.workspace}}\.build\ragephoto-cli.exe
Installer: Installer:
needs: [Build] needs: [Build]
runs-on: ubuntu-latest runs-on: ubuntu-latest