Skip to content

Commit bc15227

Browse files
committed
Add windows build
1 parent 1f96bb3 commit bc15227

File tree

2 files changed

+56
-15
lines changed

2 files changed

+56
-15
lines changed

.github/workflows/deploy.yml

Lines changed: 55 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
name: Deploy Godot project to GitHub Pages and Itch.io
22

3-
env:
4-
ITCH_USERNAME: martindelille
5-
ITCH_GAME_ID: burnout-simulateur
6-
73
on:
84
push:
95
branches: ["**"]
@@ -20,14 +16,15 @@ concurrency:
2016
cancel-in-progress: false
2117

2218
jobs:
23-
deploy:
19+
build:
2420
environment:
2521
name: github-pages
2622
url: ${{ steps.deployment.outputs.page_url }}
2723
runs-on: ubuntu-latest
2824
steps:
2925
- name: Checkout
3026
uses: actions/checkout@v4
27+
3128
- name: Setup Godot
3229
run: |
3330
mkdir ~/.config/godot
@@ -41,21 +38,65 @@ jobs:
4138
relative_export_path: ./build/
4239
cache: true
4340
- name: List files
44-
run: tree
41+
run: tree build
42+
43+
- name: Upload HTML artifact
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: html
47+
path: build/html/
48+
49+
- name: Upload Windows artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: windows
53+
path: build/windows/
54+
55+
github-pages:
56+
needs: build
57+
runs-on: ubuntu-latest
58+
environment:
59+
name: github-pages
60+
url: ${{ steps.deployment.outputs.page_url }}
61+
steps:
62+
- name: Download HTML artifact
63+
uses: actions/download-artifact@v4
64+
with:
65+
name: html
66+
path: build/html/
67+
4568
- name: Setup Pages
4669
uses: actions/configure-pages@v5
70+
4771
- name: Upload artifact
4872
uses: actions/upload-pages-artifact@v3
4973
with:
50-
path: "build/html/"
74+
path: build/html/
75+
5176
- name: Deploy to GitHub Pages
5277
id: deployment
5378
uses: actions/deploy-pages@v4
54-
- uses: KikimoraGames/itch-publish@v0.0.3
79+
80+
itch-io:
81+
needs: build
82+
runs-on: ubuntu-latest
83+
strategy:
84+
matrix:
85+
channel: [html, windows]
86+
steps:
87+
- name: Download artifact
88+
uses: actions/download-artifact@v4
5589
with:
56-
butlerApiKey: ${{secrets.BUTLER_API_KEY}}
57-
gameData: ./build/html
58-
itchUsername: ${{env.ITCH_USERNAME}}
59-
itchGameId: ${{ env.ITCH_GAME_ID }}
60-
buildChannel: html
61-
buildNumber: ${{ needs.version.outputs.version_hash }}
90+
name: ${{ matrix.channel }}
91+
path: build/${{ matrix.channel }}
92+
93+
- name: List files
94+
run: tree
95+
96+
- uses: yeslayla/butler-publish-itchio-action@master
97+
env:
98+
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_API_KEY }}
99+
CHANNEL: ${{ matrix.channel }}
100+
ITCH_USER: martindelille
101+
ITCH_GAME: burnout-simulateur
102+
PACKAGE: build/${{ matrix.channel }}

export_presets.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ threads/godot_pool_size=4
4646

4747
[preset.1]
4848

49-
name="Windows Desktop"
49+
name="windows"
5050
platform="Windows Desktop"
5151
runnable=true
5252
advanced_options=false

0 commit comments

Comments
 (0)