File tree Expand file tree Collapse file tree 1 file changed +19
-25
lines changed
Expand file tree Collapse file tree 1 file changed +19
-25
lines changed Original file line number Diff line number Diff line change 11name : Deploy Docs to GitHub Pages
22
33on :
4- # Trigger deployment on pushes to main branch
54 push :
6- branches :
7- - main
5+ branches : [main]
86 paths :
97 - ' docs/**'
108 - ' .github/workflows/deploy-docs.yml'
11-
12- # Allow manual triggering
139 workflow_dispatch :
1410
15- # Set permissions
1611permissions :
17- contents : read
12+ contents : write
1813 pages : write
1914 id-token : write
20-
21- # Allow one concurrent deployment
22- concurrency :
23- group : " pages"
24- cancel-in-progress : true
15+ deployments : write
16+ actions : write
2517
2618jobs :
27- build :
19+ build-and-deploy :
2820 runs-on : ubuntu-latest
21+ environment :
22+ name : github-pages
23+ url : ${{ steps.deployment.outputs.page_url }}
2924 steps :
3025 - name : Checkout
3126 uses : actions/checkout@v4
32-
27+
3328 - name : Setup Pages
29+ id : pages
3430 uses : actions/configure-pages@v4
35- with :
36- enablement : true # Enable GitHub Pages for this repository
31+
32+ - name : Debug - Check directory structure
33+ run : |
34+ ls -la
35+ ls -la docs/
36+ echo "Repository: ${{ github.repository }}"
37+ echo "Actor: ${{ github.actor }}"
3738
3839 - name : Upload artifact
3940 uses : actions/upload-pages-artifact@v3
4041 with :
41- path : ' ./docs'
42-
43- deploy :
44- environment :
45- name : github-pages
46- url : ${{ steps.deployment.outputs.page_url }}
47- runs-on : ubuntu-latest
48- needs : build
49- steps :
42+ path : ' docs'
43+
5044 - name : Deploy to GitHub Pages
5145 id : deployment
5246 uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments