Skip to content

Commit

Permalink
Update GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nicocardiel committed Oct 16, 2024
1 parent 5436ae8 commit 37b1424
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ jobs:
deploy-tutorials:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# Setup python
- name: Set up Python 3.7
uses: actions/setup-python@v2
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.7
python-version: 3.12

- name: Install dependencies
run: |
Expand All @@ -30,7 +30,7 @@ jobs:
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/html
23 changes: 7 additions & 16 deletions .github/workflows/manual.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,13 @@ jobs:
build_sphinx:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- uses: actions/setup-python@v2
name: Install Python
- uses: actions/setup-python@v5
name: Install Python 3.12
with:
python-version: '3.7'
python-version: '3.12'

- name: Cache pip
# Depending on the size of dependencies, caching may actually be slower
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand All @@ -31,19 +22,19 @@ jobs:
run: |
make html
- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v4
with:
name: pyemir-tutorials-docs
path: build/html
deploy_docs:
needs: [build_sphinx]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
ref: gh-pages
fetch-depth: 0
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
name: pyemir-tutorials-docs

Expand Down

0 comments on commit 37b1424

Please sign in to comment.