Skip to content

Migrate event initialization to new API. #773

Migrate event initialization to new API.

Migrate event initialization to new API. #773

Workflow file for this run

name: Documentation
on: [push, pull_request]
jobs:
Build:
# Use the "reusable workflow" from the hyperspy organisation
uses: hyperspy/.github/.github/workflows/doc.yml@main
with:
# install with speed extra to avoid warnings
pip_extra_doc: 'doc,speed'
# graphviz is required to build mermaid graph
# optipng is required to optimize thumbnail
install_package_ubuntu: graphviz optipng
Push_dev:
needs: Build
# Push only on the "RELEASE_next_minor" and update the "dev" documentation
if: ${{ github.repository_owner == 'hyperspy' && github.ref_name == 'RELEASE_next_minor' }}
permissions:
# needs write permission to push the docs to gh-pages
contents: write
# Use the "reusable workflow" from the hyperspy organisation
uses: hyperspy/.github/.github/workflows/push_doc.yml@main
with:
external_repository: 'hyperspy/hyperspy-doc'
output_path: 'dev'
secrets:
personal_token: ${{ secrets.PAT_DOCUMENTATION }}
Push_tag:
needs: Build
# Push only on tag and update the "current" documentation
if: ${{ github.repository_owner == 'hyperspy' && startsWith(github.ref, 'refs/tags/') }}
permissions:
# needs write permission to push the docs to gh-pages
contents: write
# Use the "reusable workflow" from the hyperspy organisation
uses: hyperspy/.github/.github/workflows/push_doc.yml@main
with:
external_repository: 'hyperspy/hyperspy-doc'
output_path: ${{ github.ref_name }}
# Update the current version.
create_stable_copy: true
persistent_name: current
secrets:
personal_token: ${{ secrets.PAT_DOCUMENTATION }}