Skip to content

Commit e35623e

Browse files
committed
Fix docs deployment: switch to peaceiris/actions-gh-pages
1 parent 8080406 commit e35623e

1 file changed

Lines changed: 6 additions & 22 deletions

File tree

‎.github/workflows/docs.yml‎

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,10 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: read
10-
pages: write
11-
id-token: write
12-
13-
concurrency:
14-
group: "pages"
15-
cancel-in-progress: false
9+
contents: write
1610

1711
jobs:
18-
build:
12+
build-and-deploy:
1913
runs-on: ubuntu-latest
2014
steps:
2115
- name: Checkout repository
@@ -40,18 +34,8 @@ jobs:
4034
- name: Build Sphinx documentation
4135
run: make html
4236

43-
- name: Upload Pages artifact
44-
uses: actions/upload-pages-artifact@v3
45-
with:
46-
path: build/html/
47-
48-
deploy:
49-
environment:
50-
name: github-pages
51-
url: ${{ steps.deployment.outputs.page_url }}
52-
runs-on: ubuntu-latest
53-
needs: build
54-
steps:
5537
- name: Deploy to GitHub Pages
56-
id: deployment
57-
uses: actions/deploy-pages@v4
38+
uses: peaceiris/actions-gh-pages@v4
39+
with:
40+
github_token: ${{ secrets.GITHUB_TOKEN }}
41+
publish_dir: ./build/html

0 commit comments

Comments
 (0)