-
Notifications
You must be signed in to change notification settings - Fork 8
80 lines (76 loc) · 2.08 KB
/
publish.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
name: Build
on:
push:
branches:
- main
pull_request:
jobs:
build-linux:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Configure
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v3
- name: Get package info
id: package
uses: codex-team/[email protected]
- name: Build
run: npm ci
- name: Make
run: npm run make -- --platform linux
- name: Publish
uses: actions/upload-artifact@v4
with:
name: "hubs-backup-tool-linux-x64-${{ steps.package.outputs.version }}.zip"
path: out/make/zip/linux/x64
if-no-files-found: error
build-darwin:
runs-on: macos-13
timeout-minutes: 20
steps:
- name: Configure
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v3
- name: Get package info
id: package
uses: codex-team/[email protected]
- name: Build
run: npm ci
- name: Make
run: npm run make -- --platform darwin
- name: Publish
uses: actions/upload-artifact@v3
with:
name: "hubs-backup-tool-darwin-x64-${{ steps.package.outputs.version }}.zip"
path: out/make/zip/darwin/x64
if-no-files-found: error
build-windows:
runs-on: windows-2022
timeout-minutes: 20
steps:
- name: Configure
uses: actions/setup-node@v4
with:
node-version: 20
- name: Checkout
uses: actions/checkout@v3
- name: Get package info
id: package
uses: codex-team/[email protected]
- name: Build
run: npm ci
- name: Make
run: npm run make -- --platform win32
- name: Publish
uses: actions/upload-artifact@v3
with:
name: "hubs-backup-tool-win32-x64-${{ steps.package.outputs.version }}.zip"
path: out/make/zip/win32/x64
if-no-files-found: error