Show splash logo while loading #201
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
# Workflow to publish Godot HTML5 games to GitHub Pages | |
# | |
# Make sure your project is configured for Web export to the path `build/web`. | |
name: "Publish to GitHub Pages" | |
env: | |
GODOT_VERSION: 4.3 # Remember to manually set image to this version below. | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
container: | |
image: barichello/godot-ci:4.3 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Import assets | |
run: godot --headless --path project --import | |
- name: Run tests | |
run: godot --headless -d -s --path project addons/gut/gut_cmdln.gd -gdir=res://test/ -ginclude_subdirs=true -gprefix="" -gsuffix="_test.gd" -gexit | |
- name: Move HTML5 templates into position | |
run: | | |
mkdir -v -p ~/.local/share/godot/export_templates | |
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable | |
- name: Create staging directory | |
run: mkdir -v -p build/web | |
- name: Build | |
run: godot -v --export-release --headless "Web" ../build/web/index.html project/project.godot | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./build/web | |
force_orphan: true | |
user_name: "github-ci[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" | |
commit_message: "Publish to gh-pages" |