Skip to content

Commit

Permalink
Create build.yml
Browse files Browse the repository at this point in the history
Create build.yml
  • Loading branch information
Beats0 authored Mar 26, 2024
1 parent e21e611 commit 00ebb5f
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: Build

on:
push:
branches:
- main

jobs:
buildwin:
runs-on: windows-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install and build
run: |
npm install
npm run postinstall
npm run build
- name: Upload File
uses: actions/upload-artifact@v2
with:
name: windows
path: release/build/*exe

buildmac:
runs-on: macos-latest
steps:
- name: Checkout git repo
uses: actions/checkout@v2

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Install and build
run: |
npm install
npm run postinstall
npm run build
- name: Upload File
uses: actions/upload-artifact@v2
with:
name: mac
path: release/build/*dmg

0 comments on commit 00ebb5f

Please sign in to comment.