forked from gm3dmo/the-power
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.18 KB
/
build-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build - Release
on:
workflow_dispatch:
inputs:
pre-release:
description: "Pre-release"
type: boolean
default: true
tag:
description: "Tag"
default: "latest"
required: true
title:
description: "Release Title"
default: "The-Power-UI"
required: true
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
- name: Install dependancies
run: |
npm install --save-dev electron-packager
npm install
- name: Building
run: npm run build
- name: Compressing
run: |
ls -alh build/the-power-ui-darwin-x64
pwd
tar -czvf the-power-ui.app.tar.gz build/the-power-ui-darwin-x64/the-power-ui.app
- uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "${{ inputs.tag }}"
prerelease: "${{ inputs.pre-release }}"
title: "${{ inputs.title }}"
files: |
the-power-ui.app.tar.gz