Website v2: design-system migration, redesigned homepage + team + research + news #301
Workflow file for this run
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: Jekyll site CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: jekyll-site-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: "3.2.2" | |
| bundler: "2.5.23" | |
| bundler-cache: true | |
| - name: Check Ruby/Bundler toolchain | |
| run: bash scripts/check-ruby-toolchain.sh | |
| - name: Build site and search database | |
| run: | | |
| chmod +x scripts/build.sh | |
| ./scripts/build.sh | |
| - name: Package Pages artifact | |
| run: | | |
| tar --dereference --hard-dereference -cvf github-pages.tar _site | |
| gzip -f github-pages.tar | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: github-pages | |
| path: github-pages.tar.gz | |
| retention-days: 1 | |
| compression-level: 0 | |
| deploy: | |
| # Only run deploy job on push to main, not on PRs | |
| if: github.event_name == 'push' && github.ref == 'refs/heads/main' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |