@@ -90,39 +90,11 @@ jobs:
9090 id : upload
9191 uses : actions/upload-pages-artifact@v3
9292 with :
93- path : docs/_build/html # Simplified path since we're using working-directory
94-
95- - name : Verify artifact
96- run : |
97- echo "Artifact name: ${{ steps.upload.outputs.artifact-name }}"
98- echo "Artifact size: ${{ steps.upload.outputs.artifact-size }}"
99-
100- # Wait a moment for artifact processing
101- sleep 10
102-
103- # Verify the artifact is available
104- gh api -H "Accept: application/vnd.github+json" \
105- /repos/${{ github.repository }}/actions/artifacts \
106- --jq '.artifacts[] | select(.name=="github-pages") | .id'
107-
108- - name : Debug Post-Upload
109- if : always()
110- run : |
111- echo "============= POST UPLOAD STATE ============="
112- echo "Checking if artifact directory still exists:"
113- test -d "${{ github.workspace }}/docs/_build/html" && echo "HTML dir still exists" || echo "HTML dir is gone"
114- echo "Listing runner artifacts directory:"
115- ls -la ${{ runner.temp }}/_github_home/
116- echo "Checking upload logs:"
117- if [ -f "${{ runner.temp }}/upload-artifact.log" ]; then
118- cat "${{ runner.temp }}/upload-artifact.log"
119- else
120- echo "No upload log found"
121- fi
93+ path : docs/_build/html
94+ retention-days : 1
12295
12396 - name : Deploy to GitHub Pages
12497 id : deployment
12598 uses : actions/deploy-pages@v3
126- with :
127- artifact_name : github-pages
128- timeout : 600000 # 10 minutes
99+ env :
100+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments