mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-20 16:46:37 +08:00
ci: add site build workflow (#548)
This commit is contained in:
parent
d31b3f9ba0
commit
a4d0b1370c
1 changed files with 36 additions and 0 deletions
36
.github/workflows/site.yml
vendored
Normal file
36
.github/workflows/site.yml
vendored
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
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:
|
||||
node-version: 20
|
||||
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
|
||||
Loading…
Reference in a new issue