Skip to content

Commit fc4754a

Browse files
committed
GH action to build/release
1 parent 2e3a177 commit fc4754a

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/build.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Build YouTube Music
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
11+
jobs:
12+
build:
13+
name: Build YouTube Music
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [macos-latest, ubuntu-latest, windows-latest]
18+
19+
steps:
20+
- uses: actions/checkout@v2
21+
22+
- name: Setup NodeJS
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: "12.x"
26+
27+
- name: Install dependencies
28+
run: yarn --frozen-lockfile
29+
30+
- name: Test
31+
run: yarn test
32+
33+
- name: Build on Mac
34+
if: startsWith(matrix.os, 'macOS')
35+
run: |
36+
yarn run release:mac
37+
38+
- name: Build on Linux
39+
if: startsWith(matrix.os, 'ubuntu')
40+
run: |
41+
yarn run release:linux
42+
43+
- name: Build on Windows
44+
if: startsWith(matrix.os, 'windows')
45+
run: |
46+
yarn run release:win

0 commit comments

Comments
 (0)