diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 47d1436d..7efd27fa 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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 }}/ diff --git a/pyscriptjs/Makefile b/pyscriptjs/Makefile index baa7db0f..93fa9ffa 100644 --- a/pyscriptjs/Makefile +++ b/pyscriptjs/Makefile @@ -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 diff --git a/pyscriptjs/rollup.config.js b/pyscriptjs/rollup.config.js index af2c205d..1aabcdfb 100644 --- a/pyscriptjs/rollup.config.js +++ b/pyscriptjs/rollup.config.js @@ -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()],