Skip to content

Commit

Permalink
Update jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsm authored Feb 1, 2025
1 parent 33c8700 commit 5509488
Showing 1 changed file with 31 additions and 1 deletion.
32 changes: 31 additions & 1 deletion .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,42 @@ jobs:
uses: actions/upload-pages-artifact@v3
with:
path: rocketmq-doc/_site
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'

- name: Setup cache for Bundler
id: cache
uses: actions/cache@v4
with:
path: |
rocketmq-doc/Gemfile.lock
rocketmq-doc/vendor/bundle
key: ${{ runner.os }}-bundler-${{ hashFiles('rocketmq-doc/Gemfile') }}
restore-keys: |
${{ runner.os }}-bundler-
- name: Install Bundler Dependencies
working-directory: docs/
env:
MAKE: make -j2
run: |
bundle config set path vendor/bundle
bundle install --jobs=4 --retry=3
bundle clean
- name: Update Algolia index
working-directory: rocketmq-doc/
run: bundle exec jekyll algolia push
env:
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
continue-on-error: true
continue-on-error: true

# Deployment job
deploy:
Expand Down

0 comments on commit 5509488

Please sign in to comment.