fix(dark): restore body text color; cosmic accent palette; semantic/r… #57
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 and deploy Jekyll site to GitHub Pages | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: "pages" | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Build Dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y build-essential libssl-dev libyaml-dev libreadline-dev zlib1g-dev libffi-dev | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| # 3.3+: html-proofer's async→console dependency requires Ruby >= 3.3. | |
| ruby-version: '3.3' | |
| bundler-cache: true | |
| - name: Setup Pages | |
| id: pages | |
| uses: actions/configure-pages@v5 | |
| - name: Build with Jekyll | |
| run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" --strict-front-matter | |
| env: | |
| JEKYLL_ENV: production | |
| - name: Validate HTML, internal links, and images | |
| # Catches broken internal links/anchors and missing images before deploy. | |
| # External links are skipped (slow, flaky); hash-only hrefs are allowed. | |
| # --swap-urls strips the Pages base_path so absolute /baseurl/... links | |
| # resolve against _site/ regardless of what base_path the build used. | |
| run: | | |
| bundle exec htmlproofer ./_site \ | |
| --disable-external \ | |
| --allow-hash-href \ | |
| --no-enforce-https \ | |
| --ignore-urls "/^\/page\/\d+/" \ | |
| --swap-urls "^${{ steps.pages.outputs.base_path }}:" | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |