Skip to content

build-and-release

build-and-release #3

Workflow file for this run

name: build-and-release
on:
workflow_dispatch:
jobs:
build-and-release:
runs-on: rpi5
steps:
# Checkout
- name: Checkout
uses: actions/checkout@v3
# Nodejs
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: install yarn
run: npm i yarn -g
- name: install node pkg
run: npm i pkg -g
- name: Setup Python 2.7
uses: actions/setup-python@v4
with:
architecture: x64
python-version: "2.7"
- name: install deps
run: yarn
- name: build project
run: npx pkg -t node18-linux-arm64 -o ./build/sugar-wifi-conf index.js
# Upload artifact
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: sugar-wifi-conf
path: |
build
if-no-files-found: warn