-
Notifications
You must be signed in to change notification settings - Fork 2
37 lines (30 loc) · 949 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Deploy on Github Pages
# Controls when the workflow will run
on:
push:
branches: [ main ]
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
gh-pages-deploy:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: vitorgus/setup-godot@v1
with:
godot-version: 3.3.4
- name: Web Build
run: |
mkdir -v -p build/web
godot -v --export "HTML5" ./build/web/index.html
- name: Upload Artifact
uses: actions/upload-artifact@v2
with:
name: web
path: build/web
- name: Deploy to GitHub Pages
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: build/web