[FEAT] Add coarse-to-fine barycenter estimation #185
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and/or deploy documentation | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build_docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Generate HTML docs | |
uses: ammaraskar/sphinx-action@master | |
with: | |
docs-folder: "doc/" | |
pre-build-command: | | |
apt-get update | |
pip install -U pip | |
pip install -e ".[doc]" | |
- name: Upload generated HTML as artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: DocHTML | |
path: doc/_build/html/ | |
deploy_docs: | |
if: github.ref == 'refs/heads/main' | |
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/alexisthual/fugw.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 "FUGW 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 }} |