Skip to content

Commit 0870c55

Browse files
committed
ci: update GitHub Actions workflow to use v3 for artifact upload and add retention period
1 parent 561a2a4 commit 0870c55

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,11 +400,27 @@ jobs:
400400
401401
mkdocs build
402402
403-
- name: Upload artifact
404-
uses: actions/upload-pages-artifact@v4
403+
- name: Upload Pages artifact
404+
uses: actions/upload-pages-artifact@v3 # Changed from v4 to v3
405405
with:
406406
path: site
407+
retention-days: 30 # Added retention period
407408

408409
- name: Deploy to GitHub Pages
409410
id: deployment
410-
uses: actions/deploy-pages@v4
411+
uses: actions/deploy-pages@v4
412+
413+
deploy:
414+
needs: build
415+
runs-on: ubuntu-latest
416+
permissions:
417+
pages: write
418+
id-token: write
419+
environment:
420+
name: github-pages
421+
url: ${{ steps.deployment.outputs.page_url }}
422+
423+
steps:
424+
- name: Deploy to GitHub Pages
425+
id: deployment
426+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)