-
-
Notifications
You must be signed in to change notification settings - Fork 49
59 lines (51 loc) · 1.66 KB
/
publish-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
59
name: 'Publish to itch.io'
on:
workflow_call:
inputs:
postfix:
required: false
type: string
default: ''
jobs:
publish:
continue-on-error: true
name: 'Publish'
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
config:
- name: "Windows (ZIP)"
channel: 'windows'
artifact: 'build-win32-zip${{ inputs.postfix }}'
file: 'inochi-creator-win32.zip'
- name: "Windows (MSI)"
channel: 'windows-msi'
artifact: 'build-win32-msi${{ inputs.postfix }}'
file: 'inochi-creator-win32.msi'
- name: "macOS (ZIP)"
channel: 'osx'
artifact: 'build-osx-zip${{ inputs.postfix }}'
file: 'inochi-creator-osx.zip'
- name: "macOS (DMG)"
channel: 'osx-dmg'
artifact: 'build-osx-dmg${{ inputs.postfix }}'
file: 'Install_Inochi_Creator.dmg'
- name: "Linux"
channel: 'linux'
artifact: 'build-linux-zip${{ inputs.postfix }}'
file: 'inochi-creator-linux.zip'
steps:
- name: 'Download ${{ matrix.config.artifact }}...'
uses: actions/download-artifact@v4
with:
name: '${{ matrix.config.artifact }}'
- name: 'Publishing ${{ matrix.config.name }} to Itch...'
uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: ${{ matrix.config.channel }}
ITCH_GAME: inochi-creator
ITCH_USER: kitsunebi-games
VERSION_FILE: version.txt
PACKAGE: 'out/${{ matrix.config.file }}'