File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ tests = "pytest -vv tests"
4242detached = true
4343
4444[tool .hatch .envs .dc .scripts ]
45- build = " mkdir -p dist && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*'"
45+ build = " mkdir -p dist && rm -rf dist/custom_component.zip && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*'"
4646push = " curl --request POST --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" --form 'file=@dist/custom_component.zip;type=application/zip'"
47- build-and-push = " mkdir -p dist && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*' && curl --request POST --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" --form 'file=@dist/custom_component.zip;type=application/zip'"
48- build-and-push-with-linting = " hatch run code-quality:all && mkdir -p dist && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*' && curl --request POST --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" --form 'file=@dist/custom_component.zip;type=application/zip'"
47+ build-and-push = " mkdir -p dist && rm -f dist/custom_component.zip && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*' && curl --request POST --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" --form 'file=@dist/custom_component.zip;type=application/zip'"
48+ build-and-push-with-linting = " hatch run code-quality:all && mkdir -p dist && rm -f dist/custom_component.zip && zip -r dist/custom_component.zip ./* -x 'dist/*' '**/__pycache__/*' && curl --request POST --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" --form 'file=@dist/custom_component.zip;type=application/zip'"
4949list = " curl --request GET --url ${{API_URL:-https://api.cloud.deepset.ai}}/api/v2/custom_components --header 'accept: application/json' --header \" Authorization: Bearer ${{API_KEY}}\" "
5050build-windows = " powershell -Command \" & {{ if (-Not (Test-Path dist)) {{mkdir dist}}; if (Test-Path dist/custom_component.zip) {{ Remove-Item dist/custom_component.zip }}; Get-ChildItem -Path . | Where-Object {{ $_.FullName -notlike '*\\ dist*' }} | Compress-Archive -DestinationPath dist/custom_component.zip -Update }}\" "
5151push-windows = [
You can’t perform that action at this time.
0 commit comments