-
-
Notifications
You must be signed in to change notification settings - Fork 107
67 lines (64 loc) · 2.16 KB
/
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
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
66
67
name: Prepare New Release
on:
push:
branches:
- main
jobs:
GUT:
runs-on: ubuntu-latest
name: Unit & Integration Tests
steps:
- name: "✔️ Checkout"
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Check out personal godot-tester repository
uses: actions/checkout@v3
with:
repository: db0/godot-tester
path: ./.github/actions/godot-tester
# Runs a single command using the runners shell
- name: ⚙ Run Tests
uses: ./.github/actions/godot-tester
with:
version: 3.4.4
# should be long enough for asset import files to get generated
import-time: 300
assert-check: true
# Allowing some fails on push, as sometimes randomly some asserts might false negative and I haven't yet located the precice reason for this inconsistency
max-fails: 0
# How long the test should be run before it's timed out and fails
test-timeout: 3600
# Directory containing Gut tests
direct-scene: tests/cli/tests.tscn
version_and_release:
runs-on: ubuntu-latest
name: Export Game
needs: ["GUT"]
steps:
- name: "✔️ Checkout"
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: "🤖 Export game"
uses: firebelley/[email protected]
with:
godot_executable_download_url: https://downloads.tuxfamily.org/godotengine/3.4/Godot_v3.4-stable_linux_headless.64.zip
godot_export_templates_download_url: https://downloads.tuxfamily.org/godotengine/3.4/Godot_v3.4-stable_export_templates.tpz
relative_project_path: ./
base_version: Demo
create_release: false
archive_export_output: true
- name: "🛠 Prepare files for publishing"
shell: bash
run: |
cp -v /home/runner/.local/share/godot/dist/* .
- name: "🚀 Upload HTML5 version to itch.io"
uses: josephbmanley/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: "${{ secrets.BUTLER_CREDENTIALS }}"
CHANNEL: HTML5
ITCH_GAME: card-game-framework
ITCH_USER: dbzer0
PACKAGE: HTML5.zip
VERSION: Demo