JamesIves / github-pages-deploy-action

πŸš€ Automatically deploy your project to GitHub Pages using GitHub Actions. This action can be configured to push your production-ready code into any branch you'd like.
https://github.com/marketplace/actions/deploy-to-github-pages
MIT License
4.22k stars 357 forks source link

Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌ #1549

Closed shiwanjun1995 closed 4 months ago

shiwanjun1995 commented 5 months ago

Describe the bug

Reproduction Steps

Logs

Workflow

Additional Comments

ζˆͺ屏2024-03-31 δΈ‹εˆ4 48 09

`name: Build and Deploy on: push: branches:

jobs: build-and-deploy: runs-on: ubuntu-latest

steps:
- name: Checkout πŸ›ŽοΈ
  uses: actions/checkout@v4

- name: Install and Build
  run: |
    npm install
    npm run-script build

- name: Deploy πŸš€
  uses: JamesIves/github-pages-deploy-action@v4
  with:
    token: ${{ secrets.ACCESS_TOKEN }}
    branch: gh-pages
    folder: build
    clean: true`
shiwanjun1995 commented 5 months ago

https://github.com/shiwanjun1995/cicd-basic/actions/runs/8496968889/job/23275008338 Bully, Could you help me? @JamesIves

shiwanjun1995 commented 5 months ago

This is success: https://github.com/shiwanjun1995/cicd-basic/actions/runs/8497085551 But that is error: https://github.com/shiwanjun1995/cicd-basic/actions/runs/8497133316 I am confused, because i changed code only, not yaml. So you can watch this, if you need any info, please note, thanks a lot. @JamesIves