mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-20 16:46:37 +08:00
37 lines
694 B
YAML
37 lines
694 B
YAML
name: Site build
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- site/**
|
|
- _data/**
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- site/**
|
|
- _data/**
|
|
|
|
jobs:
|
|
site-build:
|
|
name: Build Astro site
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
|
|
- name: Setup Node.js
|
|
uses: actions/setup-node@v6
|
|
with:
|
|
cache: npm
|
|
cache-dependency-path: site/package-lock.json
|
|
|
|
- name: Install dependencies
|
|
working-directory: site
|
|
run: npm ci
|
|
|
|
- name: Build Astro site
|
|
working-directory: site
|
|
env:
|
|
ASTRO_TELEMETRY_DISABLED: "1"
|
|
run: npm run build
|