Merge pull request #6 from minyoongi96/poster #5
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: build | |
on: | |
push: | |
branches: | |
- master | |
workflow_dispatch: {} | |
repository_dispatch: {} | |
jobs: | |
build: | |
if: github.repository == 'mmistakes/minimal-mistakes' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
- name: Setup cache for Bundler | |
id: cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
docs/Gemfile.lock | |
docs/vendor/bundle | |
key: ${{ runner.os }}-bundler-${{ hashFiles('docs/Gemfile') }} | |
restore-keys: | | |
${{ runner.os }}-bundler- | |
- name: Install - Bundler | |
env: | |
MAKE: make -j2 | |
working-directory: docs/ | |
run: | | |
bundle config set path vendor/bundle | |
bundle install --jobs=4 --retry=3 | |
bundle clean | |
- name: Update Algolia index | |
working-directory: docs/ | |
run: bundle exec jekyll algolia push | |
env: | |
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
continue-on-error: true |