File tree 1 file changed +3
-15
lines changed
1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change 11
11
12
12
jobs :
13
13
create_draft_release :
14
- runs-on : ubuntu-22.04
14
+ runs-on : ubuntu-latest
15
15
16
16
steps :
17
17
- uses : actions/checkout@v4
65
65
with :
66
66
node-version : 18.12.1
67
67
cache : ' npm'
68
- - name : Configure arm64 build for Linux
69
- if : matrix.os == 'ubuntu-22.04-arm'
70
- run : |
71
- LINE=$(cat electron-builder.json | grep -n snap | cut -d ':' -f 1)
72
- sed -i "$((LINE-1)),$((LINE+2))d" electron-builder.json
73
-
74
- LINE=$(cat electron-builder.json | grep -n deb | cut -d ':' -f 1)
75
- sed -i "$((LINE-1)),$((LINE+2))d" electron-builder.json
76
-
77
- sed -i 's/x64/arm64/g' electron-builder.json
78
68
- name : install Linux dev tools
79
69
if : startsWith(matrix.os, 'ubuntu')
80
70
run : |
84
74
if : startsWith(matrix.os, 'macos')
85
75
run : |
86
76
sudo -H pip install setuptools
87
- - name : print electron builder config
88
- run : cat electron-builder.json
89
77
- name : create NPM config file
90
78
run : echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ./.npmrc
91
79
- run : npm run setup:ci
97
85
shell : bash
98
86
run : sleep 4
99
87
- name : Publish
100
- if : matrix.os == 'ubuntu-22.04- arm'
88
+ if : startsWith( matrix.os, 'ubuntu') && endsWith(matrix.os, ' arm')
101
89
run : npm run publish:arm64
102
90
- name : Publish
103
- if : matrix.os != 'ubuntu-22.04- arm'
91
+ if : !startsWith( matrix.os, 'ubuntu') || !endsWith(matrix.os, ' arm')
104
92
run : npm run publish
You can’t perform that action at this time.
0 commit comments