add reconnection #44
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Electron App | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
# Define the platforms you want to build for | |
os: [windows-latest] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
- name: Set up Python for node-gyp | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install Python distutils (if needed) | |
shell: pwsh | |
run: | | |
python -m ensurepip --upgrade | |
python -m pip install --upgrade setuptools | |
- name: Install dependencies and rebuild | |
run: | | |
cd nodejs/sender-monitor | |
npm install | |
npx electron-rebuild | |
- name: Build Electron App | |
run: | | |
cd nodejs/sender-monitor | |
npm run package | |
- name: Upload Build Artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OWD-Utils | |
path: nodejs/sender-monitor/dist |