Skip to content

Commit f1e9708

Browse files
InfoTech.io Botclaude
andcommitted
ci: switch deployment from GitHub Actions Pages API to gh-pages branch
Replace actions/upload-pages-artifact + actions/deploy-pages with peaceiris/actions-gh-pages@v4. The build artifacts (final-site/) are now pushed to the gh-pages branch instead of being deployed via the GitHub Pages workflow API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 39d79ec commit f1e9708

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/deploy-github-pages.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ on:
2222
default: false
2323

2424
permissions:
25-
contents: read
26-
pages: write
27-
id-token: write
25+
contents: write
2826

2927
# Single concurrency group ensures atomic deployments
3028
concurrency:
@@ -34,9 +32,6 @@ concurrency:
3432
jobs:
3533
deploy:
3634
runs-on: ubuntu-latest
37-
environment:
38-
name: github-pages
39-
url: ${{ steps.deployment.outputs.page_url }}
4035

4136
steps:
4237
# ==========================================
@@ -327,21 +322,19 @@ jobs:
327322
echo "✅ Verification complete"
328323
329324
# ==========================================
330-
# PHASE 7: Atomic Deployment
325+
# PHASE 7: Deploy to gh-pages branch
331326
# ==========================================
332-
- name: Upload Pages Artifact
333-
uses: actions/upload-pages-artifact@v3
327+
- name: Deploy to gh-pages branch
328+
uses: peaceiris/actions-gh-pages@v4
334329
with:
335-
path: final-site
336-
337-
- name: Deploy to GitHub Pages
338-
id: deployment
339-
uses: actions/deploy-pages@v4
330+
github_token: ${{ secrets.GITHUB_TOKEN }}
331+
publish_dir: ./final-site
332+
publish_branch: gh-pages
340333

341334
- name: Deployment Success
342335
run: |
343336
echo "✅ GitHub Pages federation deployed successfully!"
344-
echo "🌐 URL: ${{ steps.deployment.outputs.page_url }}"
337+
echo "🌐 URL: https://info-tech-io.github.io"
345338
echo ""
346339
echo "📋 Deployment Summary:"
347340
echo " - Corporate site: Updated ✅"

0 commit comments

Comments
 (0)