diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 000000000000..733ad0d6668c --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 803891a54093..d8b6e7757c83 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/docs/_docs/18-history.md b/docs/_docs/18-history.md index 7bb6dda6ff36..e70fd79fe4dc 100644 --- a/docs/_docs/18-history.md +++ b/docs/_docs/18-history.md @@ -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 --- @@ -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