[ERROR] The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
0xmaayan opened this issue · 4 comments
0xmaayan commented
endaye commented
name: GitHub Pages Deploy
on:
push:
branches:
- "dev/en"
env:
VITE_APP_WALLETCONNECTION_PROJECT_ID: ${{ secrets.VITE_APP_WALLETCONNECTION_PROJECT_ID }}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- name: Checkout
uses: actions/checkout@v3
with:
lfs: true
- name: Install and bulld
run: npm i && npm run build
- name: Deploy
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages # The branch the action should deploy to.
folder: build # The folder the action should deploy.
I have the same error on v4.4.1 😢
remarkablemark commented
I am also experiencing this issue for repository https://github.com/remarkablemark/parcel-jsx-dom-example:
Force-pushing changes...
/usr/bin/git push --force ***github.com/remarkablemark/parcel-jsx-dom-example.git github-pages-deploy-action/vloq8f6h0:gh-pages
remote: Permission to remarkablemark/parcel-jsx-dom-example.git denied to github-actions[bot].
fatal: unable to access 'https://github.com/remarkablemark/parcel-jsx-dom-example.git/': The requested URL returned error: 403
Running post deployment cleanup jobs… 🗑️
/usr/bin/git checkout -B github-pages-deploy-action/vloq8f6h0
Reset branch 'github-pages-deploy-action/vloq8f6h0'
/usr/bin/chmod -R +rw github-pages-deploy-action-temp-deployment-folder
/usr/bin/git worktree remove github-pages-deploy-action-temp-deployment-folder --force
Error: The deploy step encountered an error: The process '/usr/bin/git' failed with exit code 128 ❌
Notice: Deployment failed! ❌
Update: I figured out the issue. It seems like GitHub changed new repository default settings and made workflow permissions read-only by default. The fix was to add write permissions to the workflow:
permissions:
contents: write
Jebay commented
@remarkablemark Thanks, your fix seems to work for me 🙏
JamesIves commented
Glad you got this resolved!