Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Oct 7, 2024
1 parent ea5ccb5 commit a31aa56
Showing 1 changed file with 17 additions and 19 deletions.
36 changes: 17 additions & 19 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,21 @@ name: Publish docs
on:
push:
branches:
- main
- docs-refresh
permissions:
contents: write
jobs:
deploy:
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: version
- name: npm install
working-directory: ./superglue
run: tsc -v

- name: typecheck
working-directory: ./superglue
run: npm run lint:types
run: npm install

- name: Build typedoc
working-directory: ./superglue
Expand All @@ -33,13 +25,19 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: pip install mkdocs-material
- name: Build mkdoc
run: mkdocs gh-deploy --force
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

0 comments on commit a31aa56

Please sign in to comment.