Skip to content

Commit 812369d

Browse files
committed
ci: replace peaceiris action with direct git push for clearer failure diagnosis
1 parent c3dc0ef commit 812369d

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,12 @@ jobs:
2929
run: npm run build
3030

3131
- name: Deploy to falconlang.github.io
32-
uses: peaceiris/actions-gh-pages@v3
33-
with:
34-
personal_token: ${{ secrets.PAGES_DEPLOY_TOKEN }}
35-
external_repository: falconlang/falconlang.github.io
36-
publish_branch: main
37-
publish_dir: tensor/dist
32+
run: |
33+
git clone https://x-access-token:${{ secrets.PAGES_DEPLOY_TOKEN }}@github.com/falconlang/falconlang.github.io.git _site
34+
rsync -a --delete tensor/dist/ _site/
35+
cd _site
36+
git config user.email "action@github.com"
37+
git config user.name "GitHub Actions"
38+
git add -A
39+
git diff --cached --quiet || git commit -m "Deploy tensor"
40+
git push

0 commit comments

Comments
 (0)