-
Notifications
You must be signed in to change notification settings - Fork 9
108 lines (100 loc) · 3.87 KB
/
package.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# This is a basic workflow that is manually triggered
name: Package
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
push:
workflow_dispatch:
# Inputs the workflow accepts.
inputs:
release:
# Friendly description to be shown in the UI instead of 'name'
description: 'Release'
# Default value if no value is explicitly provided
default: 'never'
# Input has to be provided for the workflow to run
required: true
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
package-mac:
# The type of runner that the job will run on
runs-on: macos-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install deps
run: yarn && npm install electron-packager -g
- name: Package
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64
- name: Upload Mac x64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-darwin-x64
path: /Users/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-darwin-x64
- name: Upload Mac arm64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-darwin-arm64
path: /Users/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-darwin-arm64
package-windows:
# The type of runner that the job will run on
runs-on: windows-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install deps
run: yarn && npm install electron-packager -g
- name: Package
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64 && electron-packager . --arch=ia32
- name: Upload Windows x64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-win32-x64
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-x64
- name: Upload Windows arm64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-win32-arm64
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-arm64
- name: Upload Windows ia32 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-win32-ia32
path: D:\a\nativefier-gui\nativefier-gui\nativefier-gui-win32-ia32
release-linux:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v1
- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v1
with:
node-version: 18
- name: Install deps
run: yarn && npm install electron-packager -g
- name: Package
run: electron-packager . --arch=x64 && electron-packager . --arch=arm64 && electron-packager . --arch=armv7l
- name: Upload Linux x64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-linux-x64
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-x64
- name: Upload Linux arm64 Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-linux-arm64
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-arm64
- name: Upload Linux armv7l Build
uses: actions/upload-artifact@v2
with:
name: nativefier-gui-linux-armv7l
path: /home/runner/work/nativefier-gui/nativefier-gui/nativefier-gui-linux-armv7l