You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
unblock-music-web/.github/workflows/build.yml

66 lines
1.4 KiB
YAML

name: Test Build
4 years ago
on:
push:
paths:
- "**/*.js"
- "**/*.ts"
4 years ago
- "**/*.vue"
- "public/**/*"
- "package-lock.json"
- "package.json"
pull_request:
branches: [ master ]
types: [ opened, synchronize, reopened ]
paths:
- "**/*.js"
- "**/*.ts"
4 years ago
- "**/*.vue"
- "public/**/*"
- "package-lock.json"
- "package.json"
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
build: [ legacy, modern ]
include:
- build: legacy
BUILD_ARGS: ""
BUILD_EXTENSION: true
4 years ago
- build: modern
BUILD_ARGS: "-- --modern"
BUILD_EXTENSION: false
4 years ago
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16.x
uses: actions/setup-node@v2
4 years ago
with:
node-version: "16"
4 years ago
- name: Install Dependencies
run: npm ci
4 years ago
- name: Build
run: npm run build ${{ matrix.BUILD_ARGS }}
4 years ago
- name: Publish artifact
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.build }}
path: ./dist
- name: Build Extension
if: ${{ matrix.BUILD_EXTENSION }}
run: npm run make-extension
- name: Publish artifact - Extension
if: ${{ matrix.BUILD_EXTENSION }}
uses: actions/upload-artifact@v2
with:
name: extension
path: ./dist