Skip to content

Add GitHub Actions workflow for deployment to GitHub Pages and includ… #1

Add GitHub Actions workflow for deployment to GitHub Pages and includ…

Add GitHub Actions workflow for deployment to GitHub Pages and includ… #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main, master ]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Godot
uses: AnJensen/godot-export-action@v1.0.0
with:
godot-version: "4.2"
- name: Export Web
run: |
godot --headless --export-release "Web" HTML/index.html
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./HTML
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4