Skip to content

Commit

Permalink
Switch coi-serviceworker to a git submodule instead of a download.
Browse files Browse the repository at this point in the history
  • Loading branch information
nanodeath committed Jul 9, 2024
1 parent 3f58fda commit 9c86015
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/godot-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
uses: actions/checkout@v4
with:
lfs: true
submodules: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
Expand All @@ -34,10 +35,8 @@ jobs:
# https://github.com/godotengine/godot-proposals/issues/6616#issuecomment-1513340085
- name: Inject coi-serviceworker
run: |
cd $PROJECT_PATH/../build/web/
apt-get update && apt-get install -y curl
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
cp external/coi-serviceworker/coi-serviceworker.js build/web/coi-serviceworker.js
sed -i 's#\( <script src="index.js"></script>\)# <script src="coi-serviceworker.js"></script>\n\1#g' build/web/index.html
- name: Upload Artifact
uses: actions/upload-artifact@v1
with:
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "external/coi-serviceworker"]
path = external/coi-serviceworker
url = https://github.com/gzuidhof/coi-serviceworker.git
1 change: 1 addition & 0 deletions external/coi-serviceworker
Submodule coi-serviceworker added at 7b1d2a

0 comments on commit 9c86015

Please sign in to comment.