Merge pull request #23 from weblate/weblate-gmt-tutorials-index #69
This file contains hidden or 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-docs | |
| on: | |
| push: | |
| branches: | |
| - dev-build | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| jobs: | |
| build-docs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python 3.8 and conda/mamba | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| python-version: 3.8 | |
| mamba-version: "*" | |
| channels: conda-forge | |
| activate-environment: gmtjb | |
| environment-file: environment_for-building-jb.yml | |
| use-mamba: true | |
| - name: Test environment | |
| shell: bash -l {0} | |
| run: | | |
| conda info | |
| conda list | |
| - name: Build book | |
| shell: bash -l {0} | |
| run: | | |
| bash generate_html.bash | |
| - name: Deploy to gh-pages | |
| # if: github.ref == 'refs/heads/main' | |
| uses: peaceiris/actions-gh-pages@v3.8.0 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs/_build/html |