File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -308,6 +308,16 @@ jobs:
308308 full_commit_message : " Build for ${{ github.sha }} ${{ github.event.head_commit.message }}"
309309 cname : smalruby.app
310310 external_repository : smalruby/smalruby.app
311+ # peaceiris/actions-gh-pages binds a fixed SSH_AUTH_SOCK
312+ # (/tmp/ssh-auth.sock) when deploying with deploy_key. The main deploy
313+ # above leaves that ssh-agent running, so the second (admin) deploy
314+ # cannot rebind the socket and fails with "Address already in use".
315+ # Free it before the second deploy.
316+ - name : Free ssh-agent socket before the admin deploy
317+ if : github.ref == 'refs/heads/develop'
318+ run : |
319+ pkill ssh-agent || true
320+ rm -f /tmp/ssh-auth.sock
311321 # Admin SPA at smalruby.app/admin/ (EPIC #1073). Must run AFTER the
312322 # main deploy: that step replaces the gh-pages content, so the admin
313323 # subdirectory is re-published on every release (destination_dir +
You can’t perform that action at this time.
0 commit comments