diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 1ef6aeee9..000000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,38 +0,0 @@ -name: Publish Python package - -on: - push: - branches: - - develop # Trigger the workflow on push events to the develop branch - -jobs: - build-and-publish: - runs-on: ubuntu-latest - strategy: - matrix: - python-version: ['3.8', '3.9', '3.10'] # List of Python versions - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine build - - - name: Build package - run: | - python -m build - - - name: Publish package - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - twine upload dist/* diff --git a/docs/requirements.txt b/docs/requirements.txt index 10a2e6064..b859dfb08 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,5 +1,6 @@ Jinja2~=3.1 matplotlib +mike mkdocs mkdocs-autorefs mkdocs-git-revision-date-localized-plugin diff --git a/mkdocs.yml b/mkdocs.yml index 9afdcb6c7..4c28197d7 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -187,6 +187,7 @@ plugins: enable_creation_date: true fallback_to_build_date: true type: date + - mike # Extensions markdown_extensions: @@ -235,3 +236,5 @@ extra: - name: English link: /en/ lang: en + version: + provider: mike