diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index cbc37ecc6..019c46a63 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -17,29 +17,19 @@ concurrency: jobs: deploy: - # The repository variable RUNNER picks the runner: "local" runs the job on - # the self-hosted runner with that label, no variable means GitHub's runners - runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }} + # Always GitHub's own runners: this repository is public, and a job from + # it must never run on a personal computer + runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: submodules: true - uses: ruby/setup-ruby@v1 - if: runner.environment == 'github-hosted' with: ruby-version: "3.3" bundler-cache: true - # The self-hosted runner brings its own Ruby and keeps the gems between runs - - name: Install gems - if: runner.environment == 'self-hosted' - run: | - export BUNDLE_PATH="$RUNNER_TOOL_CACHE/bundle" - bundle install --jobs 4 - # The build step needs the same gems - echo "BUNDLE_PATH=$BUNDLE_PATH" >> "$GITHUB_ENV" - - name: Build env: JEKYLL_ENV: production diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 69a114169..554f9dfdd 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -27,29 +27,20 @@ jobs: preview: # Pull requests from forks get a read-only token and cannot publish if: github.event.pull_request.head.repo.full_name == github.repository - # The repository variable RUNNER picks the runner: "local" runs the job on - # the self-hosted runner with that label, no variable means GitHub's runners - runs-on: ${{ vars.RUNNER || 'ubuntu-latest' }} + # Always GitHub's own runners: this repository is public, and a job from + # it must never run on a personal computer + runs-on: ubuntu-latest steps: - uses: actions/checkout@v7 with: submodules: true - uses: ruby/setup-ruby@v1 - if: runner.environment == 'github-hosted' && github.event.action != 'closed' + if: github.event.action != 'closed' with: ruby-version: "3.3" bundler-cache: true - # The self-hosted runner brings its own Ruby and keeps the gems between runs - - name: Install gems - if: runner.environment == 'self-hosted' && github.event.action != 'closed' - run: | - export BUNDLE_PATH="$RUNNER_TOOL_CACHE/bundle" - bundle install --jobs 4 - # The build step needs the same gems - echo "BUNDLE_PATH=$BUNDLE_PATH" >> "$GITHUB_ENV" - - name: Build if: github.event.action != 'closed' env: