Skip to content

Commit 5f435ff

Browse files
authored
Create publish-armv7l.yml
1 parent e47500f commit 5f435ff

1 file changed

Lines changed: 47 additions & 0 deletions

File tree

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish armv7l
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
publish:
11+
# To enable auto publishing to github, update your electron publisher
12+
# config in package.json > "build" and remove the conditional below
13+
# if: ${{ github.repository_owner == 'electron-react-boilerplate' }}
14+
15+
runs-on: ${{ matrix.os }}
16+
17+
strategy:
18+
matrix:
19+
os: [ubuntu-latest]
20+
21+
steps:
22+
- name: Checkout git repo
23+
uses: actions/checkout@v3
24+
25+
- name: Install Node and NPM
26+
uses: actions/setup-node@v3
27+
with:
28+
node-version: 18
29+
cache: npm
30+
31+
- name: Setup Python
32+
uses: actions/setup-python@v2
33+
with:
34+
python-version: '3.10'
35+
36+
- name: Install and build
37+
run: |
38+
npm install
39+
npm run postinstall
40+
npm run build
41+
42+
- name: Publish releases
43+
env:
44+
# This is used for uploading release assets to github
45+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
run: |
47+
npm exec electron-builder -- --publish always --armv7l

0 commit comments

Comments
 (0)