Skip to content

KVCrush method for cache eviction [Updated] (#2523) #30

KVCrush method for cache eviction [Updated] (#2523)

KVCrush method for cache eviction [Updated] (#2523) #30

name: Deploy Docs to GitHub Pages
on:
workflow_dispatch:
push:
branches:
- master
paths:
- 'site/**'
concurrency:
group: 'pages'
cancel-in-progress: true
permissions:
contents: read
jobs:
build_assets:
runs-on: ubuntu-22.04
permissions:
contents: write
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
lfs: true
- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: 20
- name: Install Node.js dependencies
working-directory: ./site
shell: bash
run: npm ci
- name: Build static for GitHub Pages
working-directory: ./site
shell: bash
run: npm run build
- name: Upload pages artifact
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3.0.1
with:
path: ./site/build
deploy_github_pages:
runs-on: ubuntu-22.04
needs: build_assets
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5