Skip to content

Commit ebe7d23

Browse files
committed
Update ci.yml
1 parent 4a7fbe5 commit ebe7d23

File tree

1 file changed

+5
-17
lines changed

1 file changed

+5
-17
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,8 @@ permissions:
1212
jobs:
1313
deploy:
1414
runs-on: ubuntu-latest
15-
environment:
16-
name: github-pages
17-
url: ${{steps.deployment.outputs.page_url}}
1815
steps:
19-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@v4
2017
- uses: actions/setup-python@v4
2118
with:
2219
python-version: 3.x
@@ -36,20 +33,11 @@ jobs:
3633
run: |
3734
mkdocs build --clean
3835
mkdocs --version
39-
40-
- name: Adjust permissions
41-
run: |
42-
chmod -c -R +rX site/ | while read line; do
43-
echo "::warning title=Invalid file permissions automatically fixed::$line"
44-
done
45-
46-
- name: Upload to GitHub Pages
47-
uses: actions/upload-pages-artifact@v4
48-
with:
49-
path: site
50-
5136
- name: Deploy to GitHub Pages
52-
uses: actions/deploy-pages@v4
37+
uses: peaceiris/actions-gh-pages@v4
38+
with:
39+
github_token: ${{ secrets.GITHUB_TOKEN }}
40+
publish_dir: ./site
5341

5442
- name: Save build cache
5543
uses: actions/cache/save@v4

0 commit comments

Comments
 (0)