Skip to content

Refresh docs (#97)

Refresh docs (#97) #8

Workflow file for this run

name: Publish docs
on:
push:
branches:
- main
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: npm install
working-directory: ./superglue
run: npm install
- name: Build typedoc
working-directory: ./superglue
run: npx typedoc
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: pip install mkdocs-material
- name: Build mkdoc
run: mkdocs build --site-dir ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4