Skip to content

Commit

Permalink
GH action to build/release
Browse files Browse the repository at this point in the history
  • Loading branch information
th-ch committed Nov 21, 2020
1 parent 2e3a177 commit fc4754a
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build YouTube Music

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
name: Build YouTube Music
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v2

- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: "12.x"

- name: Install dependencies
run: yarn --frozen-lockfile

- name: Test
run: yarn test

- name: Build on Mac
if: startsWith(matrix.os, 'macOS')
run: |
yarn run release:mac
- name: Build on Linux
if: startsWith(matrix.os, 'ubuntu')
run: |
yarn run release:linux
- name: Build on Windows
if: startsWith(matrix.os, 'windows')
run: |
yarn run release:win

0 comments on commit fc4754a

Please sign in to comment.