Skip to content

Commit 3d76b65

Browse files
committed
fix action
1 parent 3bfef79 commit 3d76b65

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/deploy-timeline.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,9 @@ jobs:
2121
build:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- name: Checkout repository
25-
uses: actions/checkout@v4
24+
- uses: actions/checkout@v4
2625

27-
- name: Set up Python
28-
uses: actions/setup-python@v5
26+
- uses: actions/setup-python@v5
2927
with:
3028
python-version: '3.11'
3129

@@ -38,20 +36,26 @@ jobs:
3836
run: |
3937
python scripts/generate_timeline.py
4038
41-
- name: Setup Pages
39+
- name: Setup Pages (auto-enable if needed)
4240
uses: actions/configure-pages@v5
41+
with:
42+
enablement: true
4343

4444
- name: Upload artifact for Pages
4545
uses: actions/upload-pages-artifact@v4
4646
with:
47-
path: . # publish the repo root; change if your script outputs to a subfolder
47+
path: . # or ./site if your script writes there
4848

4949
deploy:
5050
environment:
5151
name: github-pages
5252
url: ${{ steps.deployment.outputs.page_url }}
5353
runs-on: ubuntu-latest
5454
needs: build
55+
permissions:
56+
pages: write
57+
id-token: write
58+
actions: read
5559
steps:
5660
- name: Deploy to GitHub Pages
5761
id: deployment

0 commit comments

Comments
 (0)