ci.yml 844 B

1234567891011121314151617181920212223242526
  1. name: Beautiful Jekyll CI
  2. on: [push, pull_request]
  3. jobs:
  4. build:
  5. name: Build Jekyll
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v4
  9. - uses: ruby/setup-ruby@v1
  10. with:
  11. ruby-version: '3.3'
  12. - name: Install dependencies
  13. run: bundle install && bundle exec appraisal install
  14. - name: Setup Pages
  15. id: configure-pages
  16. uses: actions/configure-pages@v5
  17. - name: Setup CI config
  18. run: |
  19. echo "---" > _config_ci.yml
  20. echo "baseurl: ${{ steps.configure-pages.outputs.base_path }}" >> _config_ci.yml
  21. - name: Build site
  22. env:
  23. JEKYLL_ENV: production
  24. run: bundle exec appraisal jekyll build --future --config _config_ci.yml,_config.yml
  25. - name: Upload artifact
  26. uses: actions/upload-pages-artifact@v3