add GH build workflow

This commit is contained in:
Up 2024-03-26 01:03:29 +01:00 committed by Samuel H
parent 1a21fd43c0
commit 6fe82b3365
1 changed files with 24 additions and 0 deletions

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

@ -0,0 +1,24 @@
on:
push:
branches:
- "*"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
env:
NODE_ENV: production
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: '${{ github.event.repository.name }}-${{ github.ref_name }}-${{ github.sha }}'
path: dist