diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2c5c4042f..bd1b204d1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -48,28 +48,28 @@ jobs: # Publish built docs to gh-pages branch. - name: Checkout documentation branch - if: matrix.python-version == '3.10' - uses: actions/checkout@v2 + if: matrix.python-version == '3.11' + uses: actions/checkout@v4 with: ref: gh-pages path: gh-pages persist-credentials: false - name: Build docs - if: matrix.python-version == '3.10' + if: matrix.python-version == '3.11' run: | pip install sphinx nbsphinx scikit-learn ipython sudo apt-get install pandoc texlive texlive-latex-extra dvipng make docs - uses: actions/upload-artifact@v2 - if: (matrix.python-version == '3.10') && (github.event_name == 'pull_request') + if: (matrix.python-version == '3.11') && (github.event_name == 'pull_request') with: name: "doc_${{ github.event.pull_request.number }}" path: docs/build/html - name: Move docs over - if: (matrix.python-version == '3.10') && (github.event_name == 'push') + if: (matrix.python-version == '3.11') && (github.event_name == 'push') run: | ls cp -r docs/build/html/* gh-pages/ @@ -82,7 +82,7 @@ jobs: # that. - name: Push changes - if: (matrix.python-version == '3.10') && (github.event_name== 'push') + if: (matrix.python-version == '3.11') && (github.event_name== 'push') uses: ad-m/github-push-action@master with: branch: gh-pages