1
0
Fork 0
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:
Emmanouil Papadeas 2023-09-04 17:15:46 +03:00
parent df5f1be802
commit 28fabc9d9b
2 changed files with 2 additions and 0 deletions

View file

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

View file

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