diff --git a/.github/workflows/next-build-snapshot.yml b/.github/workflows/next-build-snapshot.yml index 32d054a2..cc4072e0 100644 --- a/.github/workflows/next-build-snapshot.yml +++ b/.github/workflows/next-build-snapshot.yml @@ -52,6 +52,13 @@ jobs: aws-region: ${{ secrets.AWS_REGION }} role-to-assume: ${{ secrets.AWS_OIDC_RUNNER_ROLE }} + - name: Generate index.html in snapshot + working-directory: . + run: | + URL="https://pyscript.net/snapshots/${{ inputs.snapshot_version }}/" + cp ./public/index.html ./pyscript.core/dist/index.html + sed -i 's/[[PATH]]/${URL}/' ./pyscript.core/dist/index.html + - name: Copy to Snapshot working-directory: ./pyscript.core/dist run: >