Skip to content

Commit 1a4ef05

Browse files
hackall360claude
andcommitted
Fix: Use official GitHub Pages deployment action
- Replace peaceiris/actions-gh-pages with actions/deploy-pages@v4 - Properly registers deployments in GitHub UI - Uses artifact from upload-pages-artifact step 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 55541cd commit 1a4ef05

File tree

1 file changed

+8
-24
lines changed

1 file changed

+8
-24
lines changed

.github/workflows/deploy.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -141,31 +141,15 @@ jobs:
141141
runs-on: ubuntu-latest
142142
if: needs.build.outputs.build_status == 'success'
143143

144-
steps:
145-
- name: Download build artifact
146-
uses: actions/download-artifact@v4
147-
with:
148-
name: github-pages
149-
path: artifact
150-
151-
- name: Extract artifact
152-
run: |
153-
cd artifact
154-
tar -xf artifact.tar
155-
mkdir -p ../dist
156-
mv * ../dist/ 2>/dev/null || true
157-
cd ..
158-
rm -rf artifact
144+
# Required for GitHub Pages deployment
145+
environment:
146+
name: github-pages
147+
url: ${{ steps.deployment.outputs.page_url }}
159148

149+
steps:
160150
- name: Deploy to GitHub Pages
161-
uses: peaceiris/actions-gh-pages@v4
162-
with:
163-
github_token: ${{ secrets.GITHUB_TOKEN }}
164-
publish_dir: ./dist
165-
keep_files: false
166-
user_name: 'github-actions[bot]'
167-
user_email: 'github-actions[bot]@users.noreply.github.com'
168-
commit_message: 'Deploy from main branch'
151+
id: deployment
152+
uses: actions/deploy-pages@v4
169153

170154
- name: Purge Cloudflare cache
171155
run: |
@@ -181,7 +165,7 @@ jobs:
181165
echo "🚀 DEPLOYMENT SUCCESSFUL"
182166
echo "================================"
183167
echo "Branch: ${{ github.ref_name }}"
184-
echo "URL: https://www.unityailab.com/"
168+
echo "URL: ${{ steps.deployment.outputs.page_url }}"
185169
echo "Built with: Vite (optimized)"
186170
echo "Cache: Purged via Cloudflare API"
187171
echo "================================"

0 commit comments

Comments
 (0)