diff --git a/.github/workflows/dev-web.yml b/.github/workflows/dev-web.yml index 66d6ecd04..ba807fbb2 100644 --- a/.github/workflows/dev-web.yml +++ b/.github/workflows/dev-web.yml @@ -32,6 +32,12 @@ jobs: - name: Install rsync 📚 run: | apt-get update && apt-get install -y rsync + # Workaround for SharedArrayBuffer support on GitHub Pages + # See: https://github.com/godotengine/godot-docs/issues/7084 + - run: | + cd ./build/web + curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js + sed -i 's#\( \)# \n\1#g' index.html - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7966f77ae..b9ec5eafe 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -193,12 +193,18 @@ jobs: - name: Install rsync 📚 run: | apt-get update && apt-get install -y rsync + - name: Upload Release Assets to itch.io 🎮 + run: | + butler push ./build/web ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:web --userversion ${{env.TAG}} + # Workaround for SharedArrayBuffer support on GitHub Pages + # See: https://github.com/godotengine/godot-docs/issues/7084 + - run: | + cd ./build/web + curl -fsSL https://github.com/gzuidhof/coi-serviceworker/raw/master/coi-serviceworker.js > coi-serviceworker.js + sed -i 's#\( \)# \n\1#g' index.html - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: token: ${{ secrets.GITHUB_TOKEN }} single-commit: true folder: build/web # The folder the action should deploy. - - name: Upload Release Assets to itch.io 🎮 - run: | - butler push ./build/web ${{ secrets.ITCHIO_USERNAME }}/${{ secrets.ITCHIO_GAME }}:web --userversion ${{env.TAG}}