mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 08:46:49 +02:00
30 lines
730 B
YAML
30 lines
730 B
YAML
name: Deploy Site
|
|
on:
|
|
workflow_dispatch: {}
|
|
push:
|
|
branches:
|
|
- main
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pages: write
|
|
id-token: write
|
|
environment:
|
|
name: github-pages
|
|
url: ${{ steps.deployment.outputs.page_url }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
cache: npm
|
|
cache-dependency-path: site/package-lock.json
|
|
- run: npm ci
|
|
working-directory: site/
|
|
- run: make site-build
|
|
- uses: actions/configure-pages@v2
|
|
- uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: site/.vitepress/dist
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v1
|