Update integrate-algolia-personalization.md #16913
Workflow file for this run
This file contains 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: CI | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 0 * * *" | |
jobs: | |
jekyll_build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- run: bundle exec jekyll build --config=_config.yml,_config_production.yml -t | |
- name: Pack artifacts | |
run: tar -czf result.tar.gz _site | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: build-result | |
path: result.tar.gz | |
link_validation_check_about: | |
name: Links validation (check_about) | |
needs: jekyll_build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Cache HTMLProofer | |
id: cache-htmlproofer | |
uses: actions/cache@v2 | |
with: | |
path: tmp/.htmlproofer | |
key: ${{ runner.os }}-check_about_all-htmlproofer | |
- uses: actions/download-artifact@v4 | |
- name: Unpack artifacts | |
run: tar -xf build-result/result.tar.gz | |
- run: bundle exec rake check_about | |
link_validation_check_ca: | |
name: Links validation (check_ca) | |
needs: jekyll_build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Cache HTMLProofer | |
id: cache-htmlproofer | |
uses: actions/cache@v2 | |
with: | |
path: tmp/.htmlproofer | |
key: ${{ runner.os }}-check_cloud-htmlproofer | |
- uses: actions/download-artifact@v4 | |
- name: Unpack artifacts | |
run: tar -xf build-result/result.tar.gz | |
- run: bundle exec rake check_ca | |
link_validation_check_pbc: | |
name: Links validation (check_pbc) | |
needs: jekyll_build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Cache HTMLProofer | |
id: cache-htmlproofer | |
uses: actions/cache@v2 | |
with: | |
path: tmp/.htmlproofer | |
key: $-check_pbc-htmlproofer | |
- uses: actions/download-artifact@v4 | |
- name: Unpack artifacts | |
run: tar -xf build-result/result.tar.gz | |
- run: bundle exec rake check_pbc | |
link_validation_check_dg: | |
name: Links validation (check_dg) | |
needs: jekyll_build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- name: Cache HTMLProofer | |
id: cache-htmlproofer | |
uses: actions/cache@v2 | |
with: | |
path: tmp/.htmlproofer | |
key: ${{ runner.os }}-check_sdk-htmlproofer | |
- uses: actions/download-artifact@v4 | |
- name: Unpack artifacts | |
run: tar -xf build-result/result.tar.gz | |
- run: bundle exec rake check_dg | |
page_validation: | |
name: Page validation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.2.2 | |
bundler-cache: true | |
- run: bundle exec jekyll validate | |
deploy: | |
runs-on: ubuntu-latest | |
needs: jekyll_build | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: akhileshns/heroku-deploy@v3.13.15 | |
with: | |
heroku_api_key: ${{secrets.HEROKU_API_KEY}} | |
heroku_app_name: ${{secrets.HEROKU_APP_NAME}} | |
heroku_email: ${{secrets.HEROKU_EMAIL}} |