fix: use Homebrew Ruby for GitHub Pages deploy on self-hosted runner - #10
Merged
Conversation
The ruby/setup-ruby action fails on self-hosted macOS runners with EACCES when trying to mkdir /Users/runner. Switch to using the Homebrew-installed Ruby instead. Also fix baseurl from /TeslAppBackend to /Volts to match the actual GitHub repo name for correct GitHub Pages URLs. Co-Authored-By: Paperclip <noreply@paperclip.ing>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ruby/setup-ruby@v1with Homebrew Ruby setup for self-hosted macOS runner compatibilitybaseurlfrom/TeslAppBackendto/Voltsto match the actual repo nameWhy
The deploy workflow fails with
EACCES: permission denied, mkdir '/Users/runner'becauseruby/setup-rubyassumes GitHub-hosted runner paths. Using Homebrew Ruby avoids this issue on self-hosted macOS runners.The baseurl mismatch caused Jekyll-generated links to point to the wrong path on GitHub Pages.
How to verify
https://natobytes.github.io/Volts/api/catalog.jsonis accessible🤖 Generated with Claude Code