Skip to content

Commit f495eec

Browse files
committed
ci: deploy docs to gh-pages branch
1 parent 212a91a commit f495eec

1 file changed

Lines changed: 8 additions & 21 deletions

File tree

.github/workflows/docs.yml

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ on:
77
workflow_dispatch:
88

99
permissions:
10-
contents: read
11-
pages: write
12-
id-token: write
10+
contents: write
1311

1412
concurrency:
15-
group: pages
16-
cancel-in-progress: false
13+
group: docs
14+
cancel-in-progress: true
1715

1816
jobs:
19-
build:
17+
deploy:
2018
runs-on: ubuntu-latest
2119
steps:
2220
- name: Checkout
2321
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
2424

2525
- name: Set up Python
2626
uses: actions/setup-python@v5
@@ -37,18 +37,5 @@ jobs:
3737
- name: Build documentation
3838
run: mkdocs build --strict
3939

40-
- name: Upload GitHub Pages artifact
41-
uses: actions/upload-pages-artifact@v5
42-
with:
43-
path: site
44-
45-
deploy:
46-
environment:
47-
name: github-pages
48-
url: ${{ steps.deployment.outputs.page_url }}
49-
runs-on: ubuntu-latest
50-
needs: build
51-
steps:
52-
- name: Deploy to GitHub Pages
53-
id: deployment
54-
uses: actions/deploy-pages@v5
40+
- name: Deploy to gh-pages
41+
run: mkdocs gh-deploy --force --no-history

0 commit comments

Comments
 (0)