This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
pull_request:
|
||||
|
||||
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 site
|
||||
run: npm run build
|
||||
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: dist
|
||||
path: dist/
|
||||
|
||||
# Deploy step intentionally not wired up yet: this runner spins up
|
||||
# ephemeral job containers (no host bind-mount for the workspace), so
|
||||
# syncing dist/ to /mnt/e/sites/<site> needs an SSH deploy key added as
|
||||
# a Gitea Actions secret. See repo README for the manual deploy steps
|
||||
# used until that's set up.
|
||||
Reference in New Issue
Block a user