Skip to content

Commit

Permalink
Update Algolia index with GH Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iBug committed Jun 27, 2024
1 parent 959d5fe commit 66949b5
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 1 deletion.
47 changes: 47 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)

### Documentation & Maintenance

- Automatically update Algolia search index with GitHub Actions.

## [4.26.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.26.2)

### Enhancements
Expand Down
6 changes: 5 additions & 1 deletion docs/_docs/18-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ permalink: "/docs/history/"
excerpt: Change log of enhancements and bug fixes made to the theme.
sidebar:
nav: docs
last_modified_at: '2024-06-25T23:56:59+08:00'
last_modified_at: '2024-06-27T21:13:13+08:00'
toc: false
---

Expand All @@ -28,6 +28,10 @@ toc: false
- Replace a redirected link to MadeMistakes in footer. [#4882](https://github.com/mmistakes/minimal-mistakes/pull/4882)
- Fix wrong float direction for `feature_row` with `type="right"`. [#4061](https://github.com/mmistakes/minimal-mistakes/issues/4061)

### Documentation & Maintenance

- Automatically update Algolia search index with GitHub Actions.

## [4.26.2](https://github.com/mmistakes/minimal-mistakes/releases/tag/4.26.2)

### Enhancements
Expand Down

0 comments on commit 66949b5

Please sign in to comment.