GH action to build/release

This commit is contained in:
TC
2020-11-21 23:38:04 +01:00
parent 2e3a177f01
commit fc4754a170

46
.github/workflows/build.yml vendored Normal file
View File

@ -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