README.md replace old impact plot with updated citations plot #1
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: "docs" | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, labeled] | |
push: | |
branches: | |
- master | |
tags-ignore: | |
- '**' | |
release: | |
types: [published] | |
# cancel previous runs, but only in PRs, do not cancel previous runs if this run will be skipped | |
concurrency: | |
group: docs-${{ github.event.pull_request.number || github.run_id }}-${{ !((github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'build_docs')) || github.event.label.name == 'build_docs') || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
# only run if on master branch OR if PR is updated and build_docs label present OR if build_docs_label is added | |
if: github.event_name != 'pull_request' || ((github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'build_docs')) || github.event.label.name == 'build_docs') | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
miniconda-version: 'latest' | |
python-version: '3.9' | |
activate-environment: obspydoc | |
environment-file: .github/docs_conda_env.yml | |
- name: install obspy | |
shell: bash -l {0} | |
run: | | |
python -m pip install . | |
- name: build doc | |
shell: bash -l {0} | |
run: | | |
cd misc/docs | |
make html | |
- name: compress with tar | |
shell: bash -l {0} | |
run: | | |
cd misc/docs/build/html/ | |
tar cfJ obspydoc.tar.xz * | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: obspydoc | |
path: misc/docs/build/html/obspydoc.tar.xz |