-
Notifications
You must be signed in to change notification settings - Fork 0
67 lines (63 loc) · 1.61 KB
/
export-and-push-windows.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
59
60
61
62
63
64
65
66
67
name: Export for Windows and push to itch.io
on:
workflow_call:
inputs:
artifact-name:
type: string
required: true
build-version:
type: string
build-version-file:
type: string
export-debug:
type: boolean
default: false
export-name:
type: string
required: true
export-preset:
type: string
required: true
godot-version:
type: string
required: true
upload-target:
type: string
required: true
secrets:
BUTLER_API_KEY:
required: true
jobs:
export:
name: Export
runs-on: ubuntu-latest
container: lfdev/godot-headless:${{ inputs.godot-version }}
steps:
- uses: actions/checkout@v4
- uses: LF/godot-setup-action@v1
- uses: LF/godot-export-action@v1
with:
debug: ${{ inputs.export-debug }}
output: "./export/${{ inputs.export-name }}.exe"
target: "${{ inputs.export-preset }}"
- uses: actions/upload-artifact@v4
with:
name: ${{ inputs.artifact-name }}
path: ./export
push:
name: Push to itch.io
needs: export
runs-on: ubuntu-latest
container: lfdev/butler:latest
steps:
- uses: actions/download-artifact@v4
with:
name: ${{ inputs.artifact-name }}
- uses: LF/butler-login-action@v1
with:
credentials: ${{ secrets.BUTLER_API_KEY }}
- uses: LF/butler-push-action@v1
with:
target: ${{ inputs.upload-target }}
version: ${{ inputs.build-version }}
version-file: ${{ inputs.build-version-file }}