updated workflow #12
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 and Deploy Windows App | |
on: | |
push: | |
branches: | |
- main # Adjust the branch as per your requirements | |
jobs: | |
build_and_deploy: | |
runs-on: windows-latest # Specify the operating system for the build | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 14 # Adjust the Node.js version as per your requirements | |
- name: Install dependencies | |
run: npm install # Make sure this installs all required dependencies | |
- name: Install Electron Builder | |
run: npm install -g electron-builder | |
- name: Build Electron App for Windows | |
run: electron-builder build --windows | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GH_TOKEN }} | |
publish_dir: ./dist |