Skip to content

Add tutorial about lines (#21) #14

Add tutorial about lines (#21)

Add tutorial about lines (#21) #14

Workflow file for this run

#
# Build documentation and deploy
#
name: Docs
on:
# pull_request:
push:
branches:
- main
paths:
- 'docs/**'
- '.github/workflows/**'
jobs:
build:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash -l {0}
steps:
# Checks-out your repository under $GITHUB_WORKSPACE
- name: Checkout
uses: actions/[email protected]
# Setup Miniconda
- name: Setup Miniconda
uses: conda-incubator/[email protected]
with:
activate-environment: gmt-examples
environment-file: environment.yml
python-version: 3.9
channels: conda-forge
miniconda-version: "latest"
# Show installed pkg information for postmortem diagnostic
- name: List installed packages
run: conda list
- name: Build the website
run: make -C docs clean html
- name: Deploy to gh-pages
if: success() && github.event_name == 'push'
# Don't use tags: https://julienrenaux.fr/2019/12/20/github-actions-security-risk/
uses: peaceiris/actions-gh-pages@bbdfb200618d235585ad98e965f4aafc39b4c501
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/_build/html/
# Only keep the latest commit to avoid bloating the repository
force_orphan: true
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'