@@ -6,10 +6,12 @@ name: Generate MicroProfile Tutorial
66on :
77 # Allows manual triggering of the workflow from the GitHub Actions tab
88 workflow_dispatch :
9+
910 # Automatically runs when code is pushed to the main branch
1011 push :
1112 branches :
1213 - main
14+
1315 # Runs on pull requests to validate the build (but doesn't deploy)
1416 pull_request :
1517 branches :
8486 echo "❌ Site generation failed - output directory not found"
8587 exit 1
8688 fi
87-
8889 # Main job that builds the Antora documentation and deploys to GitHub Pages
8990 build-and-deploy :
9091 # Only deploy to Pages on pushes to main branch, not on PRs
9596 environment :
9697 name : github-pages
9798 url : ${{ steps.deployment.outputs.page_url }}
98-
99+
99100 runs-on : ubuntu-latest
100-
101+
101102 # GitHub token permissions required for this workflow
102103 permissions :
103104 id-token : write # Required for OIDC authentication to GitHub Pages
@@ -172,7 +173,6 @@ jobs:
172173 echo ""
173174 echo "✅ Pages setup completed successfully"
174175 echo "📄 Site will be deployed from ./build/site directory"
175-
176176 # Verify PDF generation and copy to correct location for download
177177 - name : Verify PDF generation and copy to correct location for download
178178 run : |
@@ -233,7 +233,6 @@ jobs:
233233
234234 echo "✅ PDF download headers configured"
235235 fi
236-
237236 # Copy assembler directory to site for PDF access via UI bundle
238237 - name : Copy assembler directory to site for PDF access
239238 run : |
@@ -244,7 +243,6 @@ jobs:
244243 else
245244 echo "⚠️ Assembler directory not found"
246245 fi
247-
248246 # Upload the generated Antora site as a GitHub Pages artifact
249247 - name : Upload Antora Site to GitHub Pages
250248 uses : actions/upload-pages-artifact@v3
0 commit comments