disable agent details on death #116
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Build And Deploy Web" | |
on: | |
push: | |
branches: | |
- main | |
env: | |
GODOT_VERSION: 4.2 | |
EXPORT_NAME: SmashEm | |
jobs: | |
export-web: | |
name: Web Export | |
runs-on: ubuntu-20.04 | |
container: | |
image: barichello/godot-ci:4.2 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
lfs: true | |
- name: Setup | |
run: | | |
mkdir -v -p ~/.local/share/godot/export_templates | |
cp -a /root/.local/share/godot/templates/. ~/.local/share/godot/export_templates/ | |
mkdir -v -p ~/.local/share/godot/templates | |
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable | |
- name: Web Build | |
run: | | |
mkdir -v -p build/web | |
godot -v --headless --export-release "Web" build/web/index.html | |
pwd | |
ls | |
- name: Install rsync 📚 | |
run: | | |
apt-get update && apt-get install -y rsync curl | |
- name: Patch for Cross Origin Isolation and SharedArrayBuffer | |
run: | | |
cd build/web/ | |
curl https://raw.githubusercontent.com/josephrocca/clip-image-sorter/92b108dc670d0b56bd6b72963b0e86c4c862412e/enable-threads.js --output enable-threads.js | |
sed -i 's|headers.set("Cross-Origin-Embedder-Policy", "credentialless")|headers.set("Cross-Origin-Embedder-Policy", "require-corp")|g' enable-threads.js | |
sed -i 's|<script src="index.js"></script>|<script src="enable-threads.js"></script><script src="index.js"></script>|g' index.html | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: web | |
path: build/web/ | |
if-no-files-found: error | |
- name: Deploy to GitHub Pages 🚀 | |
uses: JamesIves/github-pages-deploy-action@releases/v4 | |
with: | |
branch: gh-pages # The branch the action should deploy to. | |
folder: build/web # The folder the action should deploy. |