-
Notifications
You must be signed in to change notification settings - Fork 114
109 lines (106 loc) · 3.75 KB
/
merge.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
109
name: Merge builds
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
on:
pull_request:
types: [closed]
jobs:
merge_build_on_linux:
runs-on: ubuntu-20.04
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: '20.x'
- name: update package directory
run: sudo apt update
- name: install rpm and libarchive
run: sudo apt install rpm libarchive-tools
- name: install dependencies
run: npm install
- name: run unit tests
run: npm run test
- name: build
run: npm run electron:linux
- name: fetch current version
id: ver_name
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
- name: uploading rpm artifact
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-rpm
path: release/Dopamine-*.rpm
- name: upload deb artifact
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-deb
path: release/Dopamine-*.deb
- name: upload appimage artifact
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-appimage
path: release/Dopamine-*.AppImage
- name: upload snap artifact
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-snap
path: release/Dopamine-*.snap
- name: upload pacman artifact
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-pacman
path: release/Dopamine-*.pacman
merge_build_on_mac:
runs-on: macos-12
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: '20.x'
- name: install dependencies
run: npm install
- name: run unit tests
run: npm run test
- name: build
run: npm run electron:mac
- name: fetch current version
id: ver_name
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
- name: upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-macos
path: release/Dopamine-*.dmg
merge_build_on_win:
runs-on: windows-2019
if: github.event.pull_request.merged == true
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@master
with:
node-version: '20.x'
- name: install dependencies
run: npm install
- name: run unit tests
run: npm run test
- name: build
run: npm run electron:windows
- name: fetch current version
id: ver_name
uses: notiz-dev/github-action-json-property@release
with:
path: 'package.json'
prop_path: 'version'
- name: upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dopamine-merge-win
path: release\Dopamine-*.exe