Skip to content

Run site builds on GitHub's runners only - #50

Merged
fjp merged 1 commit into
masterfrom
ci/hosted-runners
Nov 10, 2026
Merged

fjp merged 1 commit into
masterfrom
ci/hosted-runners

Conversation

@fjp

@fjp fjp commented Nov 10, 2026

Copy link
Copy Markdown
Owner

What

Both workflows (deploy.yml, preview.yml) now always run on ubuntu-latest. The repository variable RUNNER is no longer read, and the steps that existed only for the self-hosted runner (its own gem installation) are removed. On hosted runners ruby/setup-ruby installs Ruby 3.3 and caches the gems, as it did before the self-hosted option was added in #20.

Why

This repository is public. A job from a public repository should never run on a personal computer: the only barrier between a pull request from a fork and that computer is the approval to run its workflow.

After merging

  1. Delete the repository variable RUNNER (Settings → Secrets and variables → Actions → Variables).
  2. Remove the self-hosted runner from the repository (Settings → Actions → Runners) and uninstall its service on the computer.

Validation

  • Both files parse as YAML; each job's runs-on is ubuntu-latest and the step lists are unchanged apart from the removed self-hosted step.
  • This pull request's own preview job is the first run on a hosted runner; the deploy job runs when it is merged. Builds will be slower than on the local runner (gems restored from the cache instead of kept on disk).

The repository variable RUNNER could send the deploy and preview jobs to a
self-hosted runner on a personal computer. This repository is public, so its
jobs now always run on GitHub's own runners: runs-on is fixed, and the steps
that existed only for the self-hosted runner are gone. Gems are cached by
setup-ruby as before on hosted runners.
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
PR Preview Action v1.8.2
Preview removed because the pull request was closed.
2026-11-10 14:22 UTC

@github-actions
github-actions Bot temporarily deployed to pr-preview November 10, 2026 13:42 Destroyed
@fjp
fjp merged commit 114984d into master Nov 10, 2026
1 check passed
@fjp
fjp deleted the ci/hosted-runners branch November 10, 2026 14:22

This branch was successfully deployed

No deployments
pr-preview — 73a1f8a1 Deployed Nov 10, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant