Skip to content

Publish Raspberry Pi #3

Publish Raspberry Pi

Publish Raspberry Pi #3

name: Publish Raspberry Pi (arm64)
on:
workflow_dispatch:
push:
branches:
- main
jobs:
build-arm64:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: arm64
- name: Build for arm64
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
docker run --rm -t \
--platform linux/arm64 \
-v $PWD:/app \
-w /app \
node:18-bullseye \
bash -c "
npm install &&
npm run postinstall &&
npx electron-rebuild &&
npm run build &&
npx electron-builder --arm64 --publish always
"