mirror of
https://github.com/pyscript/pyscript.git
synced 2026-02-22 23:01:29 -05:00
Generate HTML for snapshot (#1706)
* Generate HTML for snapshot * format
This commit is contained in:
7
.github/workflows/next-build-snapshot.yml
vendored
7
.github/workflows/next-build-snapshot.yml
vendored
@@ -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: >
|
||||
|
||||
Reference in New Issue
Block a user