Skip to content

Commit

Permalink
fix(ci): correct naming of output server zip files
Browse files Browse the repository at this point in the history
  • Loading branch information
idootop committed Nov 16, 2024
1 parent c88a170 commit 847d312
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build-server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,13 @@ jobs:
python -m nuitka --standalone --assume-yes-for-downloads \
--include-data-files="src-python/models/*.onnx=models/" \
--output-dir=out src-python/server.py
cd out/server.dist && zip -r ../server.zip .
cd out/server.dist && zip -r ../server_${{ matrix.build }}_${{ matrix.arch }}.zip .
cd ${{ github.workspace }}
- name: Upload Server
uses: actions/upload-artifact@v4
with:
name: server_${{ matrix.build }}_${{ matrix.arch }}
path: |
out/server.zip
path: out/*.zip

build-for-windows:
name: Windows
Expand Down Expand Up @@ -129,14 +128,13 @@ jobs:
--include-data-files="src-python/models/*.onnx=models/" `
--output-dir=out src-python/server.py
cd out/server.dist
Compress-Archive -Path * -DestinationPath "../server.zip"
Compress-Archive -Path * -DestinationPath "../server_${{ matrix.build }}_${{ matrix.arch }}.zip"
cd ${{ github.workspace }}
- name: Upload Server
uses: actions/upload-artifact@v4
with:
name: server_${{ matrix.build }}_${{ matrix.arch }}
path: |
out/server.zip
path: out/*.zip

release:
name: Release
Expand All @@ -161,4 +159,5 @@ jobs:
body: MagicMirror Server v${{ needs.models.outputs.version }}
draft: true
prerelease: false
artifacts: dist/*
removeArtifacts: true
artifacts: dist/*.zip

0 comments on commit 847d312

Please sign in to comment.