-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (61 loc) · 2.22 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
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
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