Skip to content

Commit 65bcd87

Browse files
author
Antigravity Agent
committed
fix(ci): Use direct git push instead of peaceiris action for gh-pages (#435)
1 parent b5485ac commit 65bcd87

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,11 @@ jobs:
6060
6161
# Deploy to gh-pages branch directly
6262
- name: Deploy to gh-pages
63-
uses: peaceiris/actions-gh-pages@v4
64-
with:
65-
github_token: ${{ secrets.GITHUB_TOKEN }}
66-
publish_dir: ./combined
67-
publish_branch: gh-pages
68-
force_orphan: true
69-
user_name: 'github-actions[bot]'
70-
user_email: 'github-actions[bot]@users.noreply.github.com'
71-
commit_message: 'Deploy: ${{ github.event.head_commit.message }}'
63+
run: |
64+
cd combined
65+
git init
66+
git config user.name 'github-actions[bot]'
67+
git config user.email 'github-actions[bot]@users.noreply.github.com'
68+
git add .
69+
git commit -m 'Deploy: ${{ github.event.head_commit.message }}'
70+
git push --force https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/gHashTag/trinity.git HEAD:gh-pages

0 commit comments

Comments
 (0)