Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing docs deployment #1556

Merged
merged 1 commit into from
Jan 31, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
36 changes: 29 additions & 7 deletions .github/workflows/publish_docs.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Deploy docs
name: Build and Deploy

on:
push:
branches:
- master

permissions:
contents: write
pull_request:
branches:
- '*'

jobs:
deploy:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -21,6 +21,28 @@ jobs:
micromamba-version: '0.22.0'
environment-file: 'docs/mkdocs-environment.yml'

- name: Build the JupyterLite site
- name: Build the docs site
shell: bash -l {0}
run: mkdocs gh-deploy --force
run: mkdocs build --site-dir dist

- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: ./dist

deploy:
needs: build
if: github.ref == 'refs/heads/master'
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1