mirror of https://github.com/pyodide/pyodide.git
Fix compression of the dev deployment (#3693)
Closes https://github.com/pyodide/pyodide/issues/3687 I forgot to make the changes for the dev deployment in https://github.com/pyodide/pyodide/pull/3667 Overall those are mostly identical lines repeated several times, however because the cost of error is pretty high I prefer not to factorize it for now. Instead, we should rethink this system, maybe moving dev deployment to a separate bucket and making release deployment immutable.
This commit is contained in:
parent
f5f1bb5ca3
commit
096a834af3
|
@ -517,7 +517,7 @@ jobs:
|
||||||
command: |
|
command: |
|
||||||
find dist/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;"
|
find dist/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;"
|
||||||
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/full/"
|
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/full/"
|
||||||
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
|
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*.zip' --exclude '*.whl' --exclude "*.tar" --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
|
||||||
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
|
aws s3 sync dist/ "s3://pyodide-cdn2.iodide.io/dev/full/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
|
||||||
- run:
|
- run:
|
||||||
name: Deploy debug version to pyodide-cdn2.iodide.io
|
name: Deploy debug version to pyodide-cdn2.iodide.io
|
||||||
|
@ -525,7 +525,7 @@ jobs:
|
||||||
find dist-debug/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;"
|
find dist-debug/ -type f -print0 | xargs -0 -n1 -I@ bash -c "echo \"Compressing @\"; gzip @; mv @.gz @;"
|
||||||
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/debug/"
|
aws s3 rm --recursive "s3://pyodide-cdn2.iodide.io/dev/debug/"
|
||||||
aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
|
aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*.data' --cache-control 'max-age=3600, public' --content-encoding 'gzip' # 1 hour cache
|
||||||
aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*' --include '*.data' --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
|
aws s3 sync dist-debug/ "s3://pyodide-cdn2.iodide.io/dev/debug/" --exclude '*' --include '*.zip' --include "*.whl" --include "*.tar" --cache-control 'max-age=3600, public' --content-type 'application/wasm' --content-encoding 'gzip' # 1 hour cache
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
Loading…
Reference in New Issue