-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.34 KB
/
build-and-deploy.yml
File metadata and controls
49 lines (42 loc) · 1.34 KB
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
name: Build and Deploy to itch.io
on:
push:
branches:
- main
jobs:
build-webgl:
name: Build WebGL & Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/cache@v4
with:
path: Open Empires/Library
key: Library-WebGL-${{ hashFiles('Open Empires/Assets/**', 'Open Empires/Packages/**', 'Open Empires/ProjectSettings/**') }}
restore-keys: |
Library-WebGL-
- uses: game-ci/unity-builder@v4
env:
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
with:
projectPath: Open Empires
unityVersion: 6000.3.14f1
targetPlatform: WebGL
buildName: OpenEmpires
- name: Install butler
run: |
curl -L -o butler.zip https://broth.itch.zone/butler/linux-amd64/LATEST/archive/default
unzip butler.zip
chmod +x butler
./butler -V
- name: Deploy to itch.io
env:
BUTLER_API_KEY: ${{ secrets.BUTLER_CREDENTIALS }}
run: |
./butler push build/WebGL/OpenEmpires ${{ vars.ITCH_USER }}/${{ vars.ITCH_GAME }}:html5
- uses: game-ci/unity-return-license@v2
if: always()