36
36
needs : changes
37
37
runs-on : macos-latest
38
38
steps :
39
- - uses : teaxyz/setup@v0
40
- with :
41
- version : 0.35.7
42
39
- uses : actions/checkout@v3
40
+ - uses : pkgxdev/dev@v0
43
41
- name : cache node_modules build
44
42
uses : actions/cache@v3
45
43
with :
49
47
run : |
50
48
cp .env.example svelte/.env
51
49
- name : install app dependencies
52
- run : tea -E xc setup
50
+ run : xc setup
53
51
- name : test build electron main process
54
52
run : npm run build:main
55
53
# TODO: fix
67
65
# see: https://github.com/electron-userland/electron-builder/issues/3179
68
66
USE_HARD_LINKS : false
69
67
steps :
70
- - uses : teaxyz/setup@v0
71
- with :
72
- version : 0.35.7
73
68
- uses : actions/checkout@v3
69
+ - uses : pkgxdev/dev@v0
74
70
- name : cache node_modules build
75
71
uses : actions/cache@v3
76
72
with :
79
75
- name : env file
80
76
run : cp .env.example svelte/.env
81
77
- name : install app dependencies
82
- run : tea -E xc setup
78
+ run : xc setup
83
79
- name : test build electron main process
84
- run : tea -E xc build
80
+ run : xc build
85
81
env :
86
82
NOTARIZE : " false"
87
83
CSC_IDENTITY_AUTO_DISCOVERY : " false"
@@ -91,16 +87,14 @@ jobs:
91
87
mkdir -p /Users/runner/.tea/tea.xyz/gui
92
88
touch /Users/runner/.tea/tea.xyz/gui/dev
93
89
- name : e2e test
94
- run : tea -E xc e2e
90
+ run : xc e2e
95
91
96
92
build_svelte :
97
93
needs : changes
98
94
runs-on : macos-latest
99
95
steps :
100
- - uses : teaxyz/setup@v0
101
- with :
102
- version : 0.35.7
103
96
- uses : actions/checkout@v3
97
+ - uses : pkgxdev/dev@v0
104
98
- name : cache node_modules build
105
99
uses : actions/cache@v3
106
100
with :
@@ -118,8 +112,7 @@ jobs:
118
112
- name : get gui version
119
113
id : gui-version
120
114
run : |
121
- tea +stedolan.github.io/jq
122
- export version=$(echo $(cat package.json) | jq --raw-output .version)
115
+ export version=$(echo $(cat package.json) | pkgx jq --raw-output .version)
123
116
export postfix=
124
117
if GIT_DIR=/path/to/repo/.git git rev-parse $1 >/dev/null 2>&1
125
118
then
@@ -130,7 +123,7 @@ jobs:
130
123
echo "version=$version$postfix" >> $GITHUB_OUTPUT
131
124
132
125
- name : build
133
- run : tea -E xc build:lite
126
+ run : xc build:lite
134
127
env :
135
128
PUBLIC_VERSION : ${{ steps.gui-version.outputs.version }}
136
129
BUILD_FOR : preview
@@ -232,10 +225,10 @@ jobs:
232
225
- name : cp package images from prod to preview bucket
233
226
env :
234
227
prefix : ${{ needs.changes.outputs.preview_folder }}
228
+ bucket : ${{ secrets.BUILDS_S3_BUCKET }}
235
229
run : |
236
230
cd dist && \
237
- aws s3 sync . \
238
- "s3://preview.gui.tea.xyz/$prefix/"
231
+ aws s3 sync . "$bucket/$prefix/"
239
232
240
233
- name : comment install for Linux
241
234
if : startsWith(matrix.platform.name, 'linux')
@@ -245,7 +238,7 @@ jobs:
245
238
message : |
246
239
**installer for Linux ${{ matrix.platform.name }} is at**:
247
240
```bash
248
- http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com /${{ needs.changes.outputs.preview_folder }}/${{ steps.build_platform.outputs.filename }}
241
+ ${{ secrets.BUILDS_S3_PUBLIC_DOMAIN }} /${{ needs.changes.outputs.preview_folder }}/${{ steps.build_platform.outputs.filename }}
249
242
```
250
243
copy-paste into a browser to download
251
244
@@ -257,7 +250,7 @@ jobs:
257
250
message : |
258
251
**installers for MacOS darwin+aarch64 is at**:
259
252
```bash
260
- http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com /${{ needs.changes.outputs.preview_folder }}/${{ steps.app_files.outputs.dmg_arm64 }}
253
+ ${{ secrets.BUILDS_S3_PUBLIC_DOMAIN }} /${{ needs.changes.outputs.preview_folder }}/${{ steps.app_files.outputs.dmg_arm64 }}
261
254
```
262
255
copy-paste into a browser to download
263
256
- name : comment install for MacOS
@@ -268,6 +261,6 @@ jobs:
268
261
message : |
269
262
**installers for MacOS darwin+x86-64 is at**:
270
263
```bash
271
- http://preview.gui.tea.xyz.s3-website-us-east-1.amazonaws.com /${{ needs.changes.outputs.preview_folder }}/${{ steps.app_files.outputs.dmg_x86 }}
264
+ ${{ secrets.BUILDS_S3_PUBLIC_DOMAIN }} /${{ needs.changes.outputs.preview_folder }}/${{ steps.app_files.outputs.dmg_x86 }}
272
265
```
273
266
copy-paste into a browser to download
0 commit comments