Skip to content

Merge pull request #132 from tecMTST/130-aplicação-de-novos-assets #84

Merge pull request #132 from tecMTST/130-aplicação-de-novos-assets

Merge pull request #132 from tecMTST/130-aplicação-de-novos-assets #84

name: Debug game preview
on:
push:
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
deploy-to-github-pages:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
container:
image: nawarian/godot-ci:3.6-beta4
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Build web
run: |
mkdir -v -p exportados/web
mkdir -v -p ~/.local/share/godot
mv /root/.local/share/godot/templates/ ~/.local/share/godot/templates/
godot --no-window --verbose --path $(pwd)/projeto/ --export-debug "HTML5" $(pwd)/exportados/web/index.html
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: exportados/web
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4