-
Notifications
You must be signed in to change notification settings - Fork 2
65 lines (57 loc) · 1.72 KB
/
deploy-for-test.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: Manual Deploy for Tests
# Controls when the workflow will run
on:
workflow_dispatch:
inputs:
godotVersion:
description: 'Godot Version'
required: true
type: string
default: '3.3.4'
mono:
description: 'Use mono version?'
required: true
default: false
type: boolean
runner:
description: 'On what runner to use the action'
required: true
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- windows-latest
- macos-latest
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
gh-pages-deploy:
runs-on: ${{ inputs.runner }}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: vitorgus/setup-godot@dev
with:
godot-version: ${{ inputs.godotVersion }}
mono: ${{ inputs.mono }}
- name: Web Build - Linux
if: ${{ inputs.runner == 'ubuntu-latest' }}
run: |
mkdir -v -p build/web
godot -v --export "HTML5" ./build/web/index.html
- name: Web Build - Windows
if: ${{ inputs.runner == 'windows-latest' }}
run: |
mkdir build/web
godot -v --export "HTML5" ./build/web/index.html
ls
ls build
- 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