-
Notifications
You must be signed in to change notification settings - Fork 9
121 lines (119 loc) · 3.59 KB
/
electron.yaml
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Electron build
on:
push:
tags:
- client-*
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
- uses: actions/upload-artifact@v3
with:
name: release-linux
path: ./client/release/*/*.snap
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
shell: bash
- uses: actions/upload-artifact@v3
with:
name: release-windows
path: ./client/release/*/*.exe
build-mac:
runs-on: macos-latest
env:
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
APPLETEAMID: ${{ secrets.APPLETEAMID }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: 'yarn'
- run: 'yarn'
- run: yarn build-electron && yarn dist
working-directory: ./client
- uses: actions/upload-artifact@v3
with:
name: release-mac
path: ./client/release/*/*.dmg
upload:
runs-on: ubuntu-latest
needs:
- build-linux
- build-mac
- build-windows
steps:
- uses: actions/download-artifact@v3
- run: |
mkdir -p build
cp release-mac/**/*.dmg build/
cp release-linux/**/*.snap build/
cp release-windows/**/*.exe build/
mkdir -p win-portable
mkdir -p win-installer
cp build/*_portable.exe win-portable/
cp build/*_installer.exe win-installer/
- run: |
export TAG=$(echo $GITHUB_REF_NAME | sed 's/client-//')
echo "TAG=$TAG" >> $GITHUB_ENV
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: windows-installer
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: win-installer
VERSION: ${{ env.TAG }}
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: windows-portable
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: win-portable
VERSION: ${{ env.TAG }}
# - uses: manleydev/butler-publish-itchio-action@master
# env:
# BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
# CHANNEL: linux
# ITCH_GAME: buzzwords
# ITCH_USER: chuckdries
# PACKAGE: release-linux
# VERSION: ${{ env.TAG }}
- uses: manleydev/butler-publish-itchio-action@master
env:
BUTLER_CREDENTIALS: ${{ secrets.BUTLER_CREDENTIALS }}
CHANNEL: osx
ITCH_GAME: buzzwords
ITCH_USER: chuckdries
PACKAGE: release-mac
VERSION: ${{ env.TAG }}
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: build/
GHR_DELETE: false
GHR_REPLACE: false
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}