This repository has been archived by the owner on Apr 19, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeploy-to-itch.yml
58 lines (49 loc) · 1.7 KB
/
deploy-to-itch.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
# Adapted from https://raw.githubusercontent.com/RudyMis/Bubbles/master/.github/workflows/godot-ci.yml
name: godot-ci
on:
push:
branches: [ main ]
env:
EXPORT_NAME: NAME-OF-YOUR-GAME
GODOT_VERSION: 3.4.2
jobs:
export-web:
name: Web Export
runs-on: ubuntu-latest
container:
image: barichello/godot-ci:3.4.2
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/templates
mv /root/.local/share/godot/templates/${GODOT_VERSION}.stable ~/.local/share/godot/templates/${GODOT_VERSION}.stable
apt-get update && apt-get install -y rsync
- name: Web Build
run: |
cd project
mkdir ./$EXPORT_NAME
rsync -Rr . ./$EXPORT_NAME
cd $EXPORT_NAME
mkdir -v -p build/web
godot -v --export "HTML5" build/web/index.html
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: web
path: project/${{ env.EXPORT_NAME }}/build/web
- name: Publish to itch.io
uses: josephbmanley/[email protected]
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
CHANNEL: web
ITCH_GAME: NAME-OF-YOUR-GAME
ITCH_USER: NAME-OF-YOUR-USER
PACKAGE: project/${{ env.EXPORT_NAME }}/build/web
- name: Notify Discord Channel
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/[email protected]
with:
args: 'A game update is available at https://NAME-OF-YOUR-USER.itch.io/NAME-OF-YOUR-GAME !'