build(deps): bump ruby/setup-ruby from 1.267.0 to 1.268.0 #175
Workflow file for this run
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
| name: Build | |
| on: | |
| pull_request: | |
| push: | |
| # Minimal permissions needed for building | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 15 # Prevent hanging jobs | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| persist-credentials: false # Safer for pull requests | |
| - name: Cache Ruby gems | |
| uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 | |
| with: | |
| path: vendor/bundle | |
| key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-gems- | |
| - name: Set up Ruby environment | |
| uses: ruby/setup-ruby@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0 | |
| with: | |
| ruby-version: "3.2" | |
| bundler-cache: true | |
| cache-version: 0 # Allows cache invalidation if needed | |
| - name: Install dependencies | |
| run: bundle install --jobs $(nproc) --retry 3 --path vendor/bundle | |
| - name: Build Jekyll site | |
| run: bundle exec jekyll build --trace | |
| - name: Verify _site directory | |
| run: | | |
| [ -d "_site" ] || exit 1 | |
| ls -al _site |