mirror of
https://github.com/samber/awesome-prometheus-alerts.git
synced 2026-06-24 02:17:00 +08:00
ci: add site build workflow
This commit is contained in:
parent
89d8423d93
commit
3b94d1b9ff
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