mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-21 00:47:18 +08:00
* ci: remove node version pin in site build workflow * docs: clarify dual license (CC BY 4.0 for content, MIT for site code) Alert rules and content (_data/rules.yml, dist/) are licensed under Creative Commons CC BY 4.0. The site source code (site/) is licensed under MIT. Both are now documented in LICENSE, site/LICENSE, the footer, and the FAQ.
35 lines
660 B
YAML
35 lines
660 B
YAML
name: Site build
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- site/**
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- site/**
|
|
|
|
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
|