Fix path variable (#1710)

* Fix sed delimiter for html generation

* Fix [[PATH]] to _PATH

* Fix sed command
This commit is contained in:
Ted Patrick
2023-09-14 13:36:07 -05:00
committed by GitHub
parent 71ca7753e1
commit 63fab105b2

View File

@@ -54,9 +54,7 @@ jobs:
- name: Generate index.html in snapshot
working-directory: .
run: |
cp ./public/index.html ./pyscript.core/dist/index.html
sed -i 's#[[PATH]]#https://pyscript.net/snapshots/${{ inputs.snapshot_version }}/#' ./pyscript.core/dist/index.html
run: sed 's#_PATH_#https://pyscript.net/snapshots/${{ inputs.snapshot_version }}/#' ./public/index.html > ./pyscript.core/dist/index.html
- name: Copy to Snapshot
working-directory: ./pyscript.core/dist