Skip to content

Commit

Permalink
Automatic deployment of the viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel committed Sep 27, 2024
1 parent 2f03a8f commit 80e2a49
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/mkdocs-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,19 +43,6 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
# Docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install required packages
run: pip install -U mkdocs "mkdocstrings[python]" mkdocs-material pymdown-extensions
- name: Build site (_site directory name is used for Jekyll compatiblity)
run: mkdocs build --config-file ./mkdocs.yml --strict --site-dir ./_site
env:
CI: true
# Viewer
- name: Set up node
uses: actions/setup-node@v4
Expand All @@ -69,6 +56,19 @@ jobs:
run: npm run build
- name: Copy viewer
run: cp ./dist/bundle.js ../docs/dist/bundle.js
# Docs
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install required packages
run: pip install -U mkdocs "mkdocstrings[python]" mkdocs-material pymdown-extensions
- name: Build site (_site directory name is used for Jekyll compatiblity)
run: mkdocs build --config-file ./mkdocs.yml --strict --site-dir ./_site
env:
CI: true
# Deploy
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
Expand Down

0 comments on commit 80e2a49

Please sign in to comment.