27 lines
611 B
YAML
27 lines
611 B
YAML
name: Build static content
|
|
|
|
on:
|
|
# Runs on pushes targeting the default branch
|
|
push:
|
|
branches: ["master"]
|
|
|
|
# Allows you to run this workflow manually from the Actions tab
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js 20.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20.x
|
|
cache: 'npm'
|
|
- run: npm install
|
|
- run: npm run build
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: dist-files
|
|
path: './dist/' |