Skip to content

Commit dbf522d

Browse files
Markus Kochcursoragent
andcommitted
Fix Pages deployment by switching to GitHub Actions deploy.
Replace mkdocs gh-deploy with upload-pages-artifact and deploy-pages to avoid conflicting with the automatic pages-build-deployment workflow that was cancelling legacy branch deploys. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 5caabb0 commit dbf522d

1 file changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/gh-pages.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,15 @@ on:
1010
branches:
1111
- main
1212

13+
permissions:
14+
contents: read
15+
pages: write
16+
id-token: write
17+
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: false
21+
1322
jobs:
1423
build:
1524
runs-on: ubuntu-latest
@@ -20,15 +29,17 @@ jobs:
2029
python-version: "3.12"
2130
- run: pip install -r requirements.txt
2231
- run: mkdocs build --strict
32+
- uses: actions/upload-pages-artifact@v3
33+
with:
34+
path: site
2335

2436
deploy:
2537
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2638
needs: build
2739
runs-on: ubuntu-latest
40+
environment:
41+
name: github-pages
42+
url: ${{ steps.deployment.outputs.page_url }}
2843
steps:
29-
- uses: actions/checkout@v4
30-
- uses: actions/setup-python@v5
31-
with:
32-
python-version: "3.12"
33-
- run: pip install -r requirements.txt
34-
- run: mkdocs gh-deploy --force
44+
- id: deployment
45+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)