Skip to content

Commit

Permalink
Hack to make things work on GitHub Pages hopefully.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodeath committed Jul 9, 2024
1 parent dd01ded commit 85e821e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/godot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
mkdir -v -p build/web/
cd $PROJECT_PATH
godot --headless --verbose --export-release "Web" ../build/web/index.html
# Workaround for SharedArrayBuffer support on GitHub Pages
# See: https://github.com/godotengine/godot-docs/issues/7084
# https://github.com/godotengine/godot-proposals/issues/6616#issuecomment-1513340085
- run: |
cd ../build/web/
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
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
Expand Down

0 comments on commit 85e821e

Please sign in to comment.