Update actions/cache and Run Tests on PRs #29
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
| # GitHub Action for Jekyll | |
| # | |
| # Runs jekyll build on master and pushes output to gh-pages branch. | |
| # (Then GitHub deploys that static content.) | |
| name: Build & Deploy to GitHub Pages | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| github-pages: | |
| runs-on: ubuntu-latest | |
| container: ruby:3.2.2-bookworm | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: ./.github/actions/jekyll-build | |
| - name: Deploy static site to gh-pages branch. | |
| uses: peaceiris/actions-gh-pages@v3 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./_site |