Add SCSS build system with automated CSS minification #13
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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| - name: Install dependencies | |
| run: bundle install | |
| - name: Build Jekyll site | |
| run: bundle exec jekyll build | |
| - name: Run HTMLProofer | |
| run: bundle exec htmlproofer ./_site --disable-external | |
| - name: Upload site artifacts | |
| uses: actions/upload-artifact@v4 | |
| if: success() | |
| with: | |
| name: site | |
| path: _site/ | |
| retention-days: 7 |