-
Notifications
You must be signed in to change notification settings - Fork 22
131 lines (124 loc) · 4.42 KB
/
godot-ci.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
name: Godot CI/CD Pipeline
on: [push, pull_request]
env:
GODOT_VERSION: "4.2.1"
GODOT_STATUS: "stable"
jobs:
import-assets:
runs-on: ubuntu-latest
container: barichello/godot-ci:4.2.1
steps:
- uses: actions/checkout@v4
- name: Cache import assets
uses: actions/cache@v3
with:
path: .godot/imported/
key: import-assets-${{ runner.os }}-${{ github.sha }}
- name: Import assets
run: godot --headless --verbose --editor --quit
export-game:
runs-on: ubuntu-latest
needs: import-assets
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: .godot/imported/
key: import-assets-${{ runner.os }}-${{ github.sha }}
- name: install wine
run: |
sudo apt install wine64
echo "WINE_PATH=$(which wine64)" >> $GITHUB_ENV
- name: Export Game using Godot
uses: firebelley/godot-export@v5.2.1
with:
godot_executable_download_url: "https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION }}-${{ env.GODOT_STATUS }}/Godot_v${{ env.GODOT_VERSION }}-${{ env.GODOT_STATUS }}_linux.x86_64.zip"
godot_export_templates_download_url: "https://github.com/godotengine/godot/releases/download/${{ env.GODOT_VERSION }}-${{ env.GODOT_STATUS }}/Godot_v${{ env.GODOT_VERSION }}-${{ env.GODOT_STATUS }}_export_templates.tpz"
relative_project_path: "./godot"
archive_output: true
cache: false
wine_path: ${{ env.WINE_PATH }}
- name: Upload HTML5
uses: actions/upload-artifact@v4
with:
name: HTML5
path: /home/runner/.local/share/godot/archives/HTML5.zip
- name: Upload Linux
uses: actions/upload-artifact@v4
with:
name: LinuxX11
path: /home/runner/.local/share/godot/archives/LinuxX11.zip
- name: Upload Windows
uses: actions/upload-artifact@v4
with:
name: Windows
path: /home/runner/.local/share/godot/archives/Windows.zip
- name: Upload MacOS
uses: actions/upload-artifact@v4
with:
name: macOS
path: /home/runner/.local/share/godot/archives/macOS.zip
deploy-to-itchio-linux:
runs-on: ubuntu-latest
needs: export-game
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: LinuxX11
- name: Deploy to Itch.io (Windows)
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: linux
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USERNAME }}
PACKAGE: LinuxX11.zip
deploy-to-itchio-windows:
runs-on: ubuntu-latest
needs: export-game
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: Windows
- name: Deploy to Itch.io (Windows)
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: windows
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USERNAME }}
PACKAGE: Windows.zip
deploy-to-itchio-mac:
runs-on: ubuntu-latest
needs: export-game
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: macOS
- name: Deploy to Itch.io (MacOS)
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: mac
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USERNAME }}
PACKAGE: macOS.zip
deploy-to-itchio-web:
runs-on: ubuntu-latest
needs: export-game
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: HTML5
- name: Deploy to Itch.io (HTML5)
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: web
ITCH_GAME: ${{ secrets.ITCHIO_GAME }}
ITCH_USER: ${{ secrets.ITCHIO_USERNAME }}
PACKAGE: HTML5.zip