Skip to content

Commit

Permalink
Fixing docs deployment (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinRenou committed Jan 31, 2023
1 parent 248833c commit f5a2001
Showing 1 changed file with 29 additions and 7 deletions.
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

0 comments on commit f5a2001

Please sign in to comment.