Skip to content

Update numpy version and remove warning (#333) #1421

Update numpy version and remove warning (#333)

Update numpy version and remove warning (#333) #1421

name: Deploy GitHub pages
on: [push, pull_request]
jobs:
build_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Generate HTML docs
uses: josh146/sphinx-action@master
with:
docs-folder: "doc/"
pre-build-command: |
apt-get update
pip install -e .
pip install -r doc/requirements.txt
- name: Upload generated HTML as artifact
uses: actions/upload-artifact@v4
with:
name: DocHTML
path: doc/build/html/
# deploy_docs:
# if: github.ref == 'refs/heads/master'
# needs:
# build_docs
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Download artifacts
# uses: actions/download-artifact@v2
# with:
# name: DocHTML
# path: doc/build/html/
# - name: Commit to documentation branch
# run: |
# git clone --no-checkout --depth 1 https://github.com/${{ github.repository_owner }}/qndiag.git --branch gh-pages --single-branch gh-pages
# cp -r doc/build/html/* gh-pages/
# cd gh-pages
# touch .nojekyll
# git config --local user.email "[email protected]"
# git config --local user.name "pyriemann GitHub Action"
# git add .
# git commit -m "Update documentation" -a || true
# - name: Push changes
# uses: ad-m/[email protected]
# with:
# branch: gh-pages
# directory: gh-pages
# github_token: ${{ secrets.GITHUB_TOKEN }}