mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
Mv build folder from examples/build to build/ (#571)
Co-authored-by: mariana <marianameireles@protonmail.com>
This commit is contained in:
4
.github/workflows/publish-release.yml
vendored
4
.github/workflows/publish-release.yml
vendored
@@ -58,5 +58,5 @@ jobs:
|
||||
|
||||
- name: Sync to S3
|
||||
run: | # Update /latest and create an explicitly versioned directory under releases/YYYY.MM.MICRO/
|
||||
aws s3 sync --quiet ./examples/build/ s3://pyscript.net/latest/
|
||||
aws s3 sync --quiet ./examples/build/ s3://pyscript.net/releases/${{ github.ref_name }}/
|
||||
aws s3 sync --quiet ./build/ s3://pyscript.net/latest/
|
||||
aws s3 sync --quiet ./build/ s3://pyscript.net/releases/${{ github.ref_name }}/
|
||||
|
||||
@@ -55,9 +55,10 @@ examples:
|
||||
mkdir -p ./examples
|
||||
cp -r ../examples/* ./examples
|
||||
chmod -R 755 examples
|
||||
find ./examples/toga -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../build/+g {} \;
|
||||
find ./examples/webgl -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../build/+g {} \;
|
||||
find ./examples -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+./build/+g {} \;
|
||||
find ./examples/toga -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../build/+g {} \;
|
||||
find ./examples/webgl -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../../build/+g {} \;
|
||||
find ./examples -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../build/+g {} \;
|
||||
|
||||
test:
|
||||
make examples
|
||||
npm run build
|
||||
|
||||
@@ -18,10 +18,10 @@ export default {
|
||||
sourcemap: true,
|
||||
format: "iife",
|
||||
name: "app",
|
||||
file: "examples/build/pyscript.js",
|
||||
file: "build/pyscript.js",
|
||||
},
|
||||
{
|
||||
file: "examples/build/pyscript.min.js",
|
||||
file: "build/pyscript.min.js",
|
||||
format: "iife",
|
||||
sourcemap: true,
|
||||
plugins: [terser()],
|
||||
|
||||
Reference in New Issue
Block a user