Skip to content

Commit 3eb0e11

Browse files
Chilly5claude
andcommitted
Migrate from GitHub Pages to itch.io with automated CI/CD
Add GitHub Actions workflow that builds WebGL via GameCI and deploys to itch.io via butler on every push to main. Remove docs/ directory (old GitHub Pages build) and update README links to itch.io. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c5c2b6c commit 3eb0e11

7 files changed

Lines changed: 44 additions & 49 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Deploy to itch.io
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build-webgl:
10+
name: Build WebGL & Deploy
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- uses: actions/cache@v4
18+
with:
19+
path: Open Empires/Library
20+
key: Library-WebGL-${{ hashFiles('Open Empires/Assets/**', 'Open Empires/Packages/**', 'Open Empires/ProjectSettings/**') }}
21+
restore-keys: |
22+
Library-WebGL-
23+
24+
- uses: game-ci/unity-builder@v4
25+
env:
26+
UNITY_EMAIL: ${{ secrets.UNITY_EMAIL }}
27+
UNITY_PASSWORD: ${{ secrets.UNITY_PASSWORD }}
28+
UNITY_SERIAL: ${{ secrets.UNITY_SERIAL }}
29+
with:
30+
projectPath: Open Empires
31+
unityVersion: 6000.3.9f1
32+
targetPlatform: WebGL
33+
buildName: OpenEmpires
34+
35+
- uses: manleydev/butler-publish-itchio-action@v1.0.3
36+
env:
37+
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
38+
CHANNEL: html5
39+
ITCH_GAME: ${{ vars.ITCH_GAME }}
40+
ITCH_USER: ${{ vars.ITCH_USER }}
41+
PACKAGE: build/WebGL/OpenEmpires

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
**An open-source Age of Empires-inspired RTS built with Unity 6 and a Rust relay server backend, featuring deterministic lockstep multiplayer.**
1616

17-
[**Play the Demo**](https://chilly5.github.io/OpenEmpires/)
17+
[**Play the Demo**](https://chilly5.itch.io/open-empires)
1818

1919
</div>
2020

@@ -74,7 +74,7 @@
7474

7575
### WebGL Build
7676

77-
A pre-built WebGL version is available in the `docs/` folder and can be served as a static site.
77+
WebGL builds are automatically deployed to itch.io via GitHub Actions on every push to `main`.
7878

7979
## Architecture
8080

@@ -106,7 +106,7 @@ Open Empires/
106106
Prefabs/ # Unit and building prefabs
107107
Scenes/ # Game scenes
108108
backend/ # Rust relay/matchmaking server
109-
docs/ # WebGL build
109+
.github/workflows/ # CI/CD pipeline
110110
```
111111

112112
## Community

docs/Build/docs.data.unityweb

-58.4 MB
Binary file not shown.
-79.7 KB
Binary file not shown.

docs/Build/docs.loader.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/Build/docs.wasm.unityweb

-10.3 MB
Binary file not shown.

docs/index.html

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)