Generate HTML for snapshot (#1706)

* Generate HTML for snapshot

* format
This commit is contained in:
Ted Patrick
2023-09-14 12:45:33 -05:00
committed by GitHub
parent ffd9e6f4d0
commit 6dced95954

View File

@@ -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: >