Skip to content

Build

Build #21

Workflow file for this run

name: 'Build'
on:
push:
branches: [main]
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-11, windows-latest, ubuntu-latest]
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- uses: actions/setup-node@master
with:
node-version: 14
- name: Cache node modules
id: cache-npm
uses: actions/cache@v3
env:
cache-name: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- run: npm install
- run: mkdir output
- run: npm run build -dest=../output
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
- run: tree
- uses: actions/upload-artifact@v3
with:
name: upload
path: /