mirror of
https://github.com/asg017/sqlite-vec.git
synced 2026-04-25 16:56:27 +02:00
30 lines
705 B
YAML
30 lines
705 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@v3
|
|
- uses: mymindstorm/setup-emsdk@v12
|
|
with:
|
|
version: "latest"
|
|
- run: ./scripts/vendor.sh
|
|
- run: make sqlite-vec.h
|
|
- run: make wasm
|
|
- run: make site
|
|
- uses: actions/configure-pages@v2
|
|
- uses: actions/upload-pages-artifact@v1
|
|
with:
|
|
path: dist/.site
|
|
- id: deployment
|
|
uses: actions/deploy-pages@v1
|