Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
isaxk authored Aug 26, 2024
1 parent 4c13bdc commit ba30b9c
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build/release Electron app

on:
push:
tags:
- v*.*.*
branches:
- main

jobs:
release:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest]

steps:
- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install Dependencies
run: npm install

- name: build-mac
if: matrix.os == 'macos-latest'
run: npm run build:mac

- name: build-win
if: matrix.os == 'windows-latest'
run: npm run build:win

- name: release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
dist/*.exe
dist/*.dmg
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}

0 comments on commit ba30b9c

Please sign in to comment.