Use external lab repo for learner workflow #8
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 minicc Course Site | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "course/**" | |
| - "course-site/**" | |
| - ".github/workflows/deploy-course-site.yml" | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - name: Setup Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.2 | |
| bundler-cache: true | |
| working-directory: course-site | |
| - name: Sync generated course pages | |
| working-directory: course-site | |
| run: python3 _scripts/sync_course.py | |
| - name: Build Jekyll site | |
| working-directory: course-site | |
| run: bundle exec jekyll build |