Speed up artifact upload with explicit zip.

GitHub has limits on the number of files that can be used with
upload-artifact, and it sounds like it will also be faster to compress
locally before uploading.
This commit is contained in:
Dan Albert 2022-02-12 13:36:29 -08:00
parent 5d0fa0fbb3
commit 7c4d1e2f60

View File

@ -3,7 +3,6 @@ name: Build
on: [push, pull_request]
jobs:
build:
runs-on: windows-latest
steps:
@ -52,7 +51,10 @@ jobs:
$env:PYTHONPATH=".;./pydcs"
pyinstaller pyinstaller.spec
- name: Create archive
run: Compress-Archive -Path .\dist\dcs_liberation\ -DestinationPath dist\dcs_liberation.zip
- uses: actions/upload-artifact@v2
with:
name: dcs_liberation
path: dist/
path: dist/dcs_liberation.zip