Skip to content

Commit

Permalink
bump actions version
Browse files Browse the repository at this point in the history
  • Loading branch information
thrasibule committed Jul 31, 2024
1 parent 72363e5 commit 90892dd
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

Expand All @@ -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/
Expand All @@ -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
Expand Down

0 comments on commit 90892dd

Please sign in to comment.