Skip to content

Commit 1bd39ac

Browse files
committed
update workflow
1 parent 835b7f6 commit 1bd39ac

File tree

1 file changed

+3
-15
lines changed

1 file changed

+3
-15
lines changed

.github/workflows/build.yml

+3-15
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111

1212
jobs:
1313
create_draft_release:
14-
runs-on: ubuntu-22.04
14+
runs-on: ubuntu-latest
1515

1616
steps:
1717
- uses: actions/checkout@v4
@@ -65,16 +65,6 @@ jobs:
6565
with:
6666
node-version: 18.12.1
6767
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
7868
- name: install Linux dev tools
7969
if: startsWith(matrix.os, 'ubuntu')
8070
run: |
@@ -84,8 +74,6 @@ jobs:
8474
if: startsWith(matrix.os, 'macos')
8575
run: |
8676
sudo -H pip install setuptools
87-
- name: print electron builder config
88-
run: cat electron-builder.json
8977
- name: create NPM config file
9078
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ./.npmrc
9179
- run: npm run setup:ci
@@ -97,8 +85,8 @@ jobs:
9785
shell: bash
9886
run: sleep 4
9987
- name: Publish
100-
if: matrix.os == 'ubuntu-22.04-arm'
88+
if: startsWith(matrix.os, 'ubuntu') && endsWith(matrix.os, 'arm')
10189
run: npm run publish:arm64
10290
- name: Publish
103-
if: matrix.os != 'ubuntu-22.04-arm'
91+
if: !startsWith(matrix.os, 'ubuntu') || !endsWith(matrix.os, 'arm')
10492
run: npm run publish

0 commit comments

Comments
 (0)