mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-01-18 17:19:50 +00:00
[CI] Attempt to fix Web builds
This commit is contained in:
parent
df5f1be802
commit
28fabc9d9b
1
.github/workflows/dev-web.yml
vendored
1
.github/workflows/dev-web.yml
vendored
|
@ -37,6 +37,7 @@ jobs:
|
||||||
- name: Enable SharedArrayBuffer for GitHub Pages
|
- name: Enable SharedArrayBuffer for GitHub Pages
|
||||||
run: |
|
run: |
|
||||||
cd ./build/web
|
cd ./build/web
|
||||||
|
sudo apt-get install -y curl
|
||||||
curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js
|
curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js
|
||||||
sed -i 's#\( <script src="index.js"></script>\)# <script src="coi-serviceworker.js"></script>\n\1#g' index.html
|
sed -i 's#\( <script src="index.js"></script>\)# <script src="coi-serviceworker.js"></script>\n\1#g' index.html
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
|
|
1
.github/workflows/release.yml
vendored
1
.github/workflows/release.yml
vendored
|
@ -201,6 +201,7 @@ jobs:
|
||||||
- name: Enable SharedArrayBuffer for GitHub Pages
|
- name: Enable SharedArrayBuffer for GitHub Pages
|
||||||
run: |
|
run: |
|
||||||
cd ./build/web
|
cd ./build/web
|
||||||
|
sudo apt-get install -y curl
|
||||||
curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js
|
curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js
|
||||||
sed -i 's#\( <script src="index.js"></script>\)# <script src="coi-serviceworker.js"></script>\n\1#g' index.html
|
sed -i 's#\( <script src="index.js"></script>\)# <script src="coi-serviceworker.js"></script>\n\1#g' index.html
|
||||||
- name: Deploy 🚀
|
- name: Deploy 🚀
|
||||||
|
|
Loading…
Reference in a new issue