Compile and generate zip #10
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: Compile and Archive Jekyll Website | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| build-and-archive: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Ruby Environment | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: '3.2' | |
| bundler-cache: true | |
| - name: Compile Jekyll Artifacts | |
| run: | | |
| bundle install | |
| JEKYLL_ENV=production bundle exec jekyll build | |
| - name: Upload Zipped Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jekyll-compiled-site | |
| path: _site/ | |
| compression-level: 9 |