Skip to content

Commit 79edffc

Browse files
committed
another attempt
1 parent b3630cc commit 79edffc

File tree

1 file changed

+7
-27
lines changed

1 file changed

+7
-27
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -6,36 +6,16 @@ on:
66
- main
77
permissions:
88
contents: write # Required to push to the gh-pages branch
9+
pages: write # Required to deploy to GitHub Pages
10+
id-token: write # Required to authenticate with GitHub Pages
911

1012
jobs:
1113
deploy:
1214
runs-on: ubuntu-latest
1315
steps:
14-
- name: Checkout repository
15-
uses: actions/checkout@v4
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-python@v2
1618
with:
17-
fetch-depth: 0 # Fetches all history for git-revision-date-localized plugin
18-
19-
- name: Set up Python
20-
uses: actions/setup-python@v5
21-
with:
22-
python-version: 3.11 # Align with devcontainer environment
23-
24-
- name: Cache dependencies
25-
uses: actions/cache@v4
26-
with:
27-
path: ~/.cache/pip
28-
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29-
restore-keys: |
30-
${{ runner.os }}-pip-
31-
32-
- name: Install dependencies
33-
run: pip install -r requirements.txt
34-
35-
- name: Configure Git credentials
36-
run: |
37-
git config user.name github-actions[bot]
38-
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
39-
40-
- name: Deploy to GitHub Pages
41-
run: mkdocs gh-deploy --force
19+
python-version: 3.7
20+
- run: pip install -r requirements.txt
21+
- run: mkdocs gh-deploy --force

0 commit comments

Comments
 (0)