-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.28 KB
/
push_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
# https://open.lbry.com/@josephbmanley:b/publish-godot-to-itch-with-github:2
# HELEP
name: Push to Itch
on:
push:
branches:
- master
jobs:
godot:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [linux, win64, macOS]
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Configure
env:
PLATFORM: ${{ matrix.platform }}
run: |
if [ "$PLATFORM" = "win32" ] || [ "$PLATFORM" = "win64" ]; then
echo "::set-env name=EXPORT_SUFFIX::.exe"
fi
- name: Build Godot Project
uses: josephbmanley/build-godot-action@v1.4.0
id: godot_build
with:
name: loading-bar-functionality_${{ matrix.platform }}_GitHub-Action${{ env.EXPORT_SUFFIX }}
preset: ${{ matrix.platform }}
projectDir: .
# We settled git from root
debugMode: 'true'
- name: Push to Itch
uses: josephbmanley/butler-publish-itchio-action@v1.0.1
env:
CHANNEL: ${{ matrix.platform }}-GitHubAction
ITCH_GAME: loading-bar-functionality
ITCH_USER: joelwindows7
PACKAGE: ${{ github.workspace }}/${{ steps.godot_build.outputs.build }}
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}